View Full Version : Problem with Creation of Windows!!!

04-01-2009, 10:02 AM
I have written programs in OpenGL. I'm working on openSUSE linux. They successfully get compiled , however if I try to run the programs, output window is not getting created. Instead the <u>glutCreateWindow</u> function call is ending up in a segmentation fault. Please help me with this.. Thanks in advance..

04-05-2009, 09:23 PM
Hi Poorvankara,

I suspect you are sending an invalid pointer to

glutCreateWindow(char* name)

Your program might compile but if you are sending an invalid pointer to glutCreateWindow(..), it is bound to crash and burn. :)

Could you please paste some snippets of your code so that we can have a look?

04-05-2009, 09:41 PM
Try glutCreateWindow("Window");
and then do it with the char array:
for ex:

char name_of_window[15];