PDA

View Full Version : compilation problems



yugandhar
05-31-2003, 03:38 AM
hai,

i am using RH9 os. and when i try to compile the program (which is in ADDISON WESLEY Publishers book "OpenGL programming for the X windows system", glxsimple.c program.

command for compilation i used is:

cc -o glxsimple glxsimple.c -lGL -lXext -X11

the following error is throwing

/usr/bin/ld : can not find -lXext
collect 2: ld returned 1 exit status.

how do i overcome this error.

thaks & regards
yug

jmg
05-31-2003, 12:41 PM
Do you have libXext.so present somewhere on your system? (as in /usr/X11R6/lib/libXext.so)

If it's there, then you need to add -L/usr/X11R6/lib to your linking command.