I'd say that you're specifying the libraries in the wrong order.
note that the libs on the command line for linking depend on the
proper sequence; for more information you should send the
complete command line for linking (try rearanging libs first and
check in which lib the unresolved externals are
(e.g. nm /usr/lib/libX11.{a,sa,...} | more).
XInitExtension from your example is in libX11, so you have to specify
this lib *after* libXext ("-lXext -lX11" and not "-lX11 -lXext")...
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^