Problem with Creation of Windows!!!

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…

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. :slight_smile:

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

Try glutCreateWindow(“Window”);
and then do it with the char array:
for ex:

char name_of_window[15];