Re: [gtk-list] compile problems




The order you specify object files on the gcc command line is
significant. (The linker needs to know which functions it needs from a
library before it processes it.) If you reorder things to:

gcc -Wall -g helloworld.c -o hello_world -L/usr/X11R6/lib \
    -lglib -lgdk -lgtk -lX11 -lXext -lm 

I suspect it will work correctly.

Regards,
                                        Owen



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