[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compiling simple program



>>>>> "M" == M C Vernon <mcv21@cus.cam.ac.uk> writes:

    M> mcv21@pick:/home2/mcv21/programming/x/gl> make hello gcc
    M> helloworld.c -o hello -I/usr/include -I/usr/X11R6/include \
    M> -L/usr/lib -lm -lglut -lMesaGLU -L/usr/X11R6/lib -lXmu -lX11
    M> -lXext -lMesaGL \ -lMesaGLw /usr/lib/libglut.so: undefined
    M> reference to `XGetExtensionVersion' /usr/lib/libglut.so:
    M> undefined reference to `XFreeDeviceList' /usr/lib/libglut.so:
    M> undefined reference to `XQueryDeviceState' /usr/lib/libglut.so:
    M> undefined reference to `XListInputDevices' /usr/lib/libglut.so:
    M> undefined reference to `XFreeDeviceState' /usr/lib/libglut.so:
    M> undefined reference to `XOpenDevice' /usr/lib/libglut.so:
    M> undefined reference to `XSelectExtensionEvent' collect2: ld
    M> returned 1 exit status make: *** [hello] Error 1

Try putting the -lMesaGL and -lMesaGLw before the X stuff.

Kenny.

--
ADML Support, EUCS, The University of Edinburgh.


Reply to: