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…
I suspect you are sending an invalid pointer to
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?
and then do it with the char array:
char name_of_window; srtcpy(name_of_window,argv); glutCreateWindow(name_of_window);