PDA

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



Poorvankara
04-01-2009, 09: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..

matchStickMan
04-05-2009, 08: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?

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


char name_of_window[15];
srtcpy(name_of_window,argv[1]);

glutCreateWindow(name_of_window);