[users] build error

Dries Verachtert dries at ulyssis.org
Mon Aug 7 20:57:05 CEST 2006


On Thursday 03 August 2006 01:40, hayden fraser wrote:
> I'm trying to compile my first hello world program and I'm getting the
> following error which appears to me to be a link error. Not sure what
> -lXext is so I went to the fltk-config file an took out -lXext just to see
> what I would get and it then complained that it couldn't find -lX11. Are
> these flags, directories, or library files? Is there anyone that can give
> me a hand at working this out?
>
>   $ fltk-config --compile hello.cxx
>
> gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
> -mtune=pentium4 -fasynchronous-unwind-tables -I/usr/X11R6/include -o hello
> hello.cxx -L/usr/X11R6/lib /usr/lib/libfltk.a -lm -lXext -lX11 -lsupc++
> /usr/local/bin/ld: cannot find -lXext
> collect2: ld returned 1 exit status

You need the file /usr/lib/libXext.so which you get by installing the rpm 
libXext-devel on fc5.


-- 
Rpm packages for Red Hat Enterprise Linux, Fedora Core and Aurora at 
http://dries.ulyssis.org/rpm/



More information about the users mailing list