PDA

View Full Version : Segmentation problem?????



yugandhar
06-03-2003, 04:13 AM
Hi,
When I compiled my OpenGL program(glxsimple.c) using the following command:

cc -o glxsimple glxsimple.c -shared -L/usr/X11R6/lib -lGL -lXext -lX11

"It's throwing no errors." when i look at the output of the program using the following command :

./glxsimple

It's giving the following error:

"segmentation problem"

what does this mean?
please help me out.

thanks & regards
Yug.

starman
06-03-2003, 04:32 AM
You're probably trying to write or read an uninitialized pointer. Post some code and we'll know for sure.

Gavin
06-04-2003, 04:10 AM
out of bounds with an array.

starman
06-05-2003, 10:10 AM
I'm guessing something like this is happening:

Scene * myScene;

...

myScene->draw(); // KABOOM!