--export-dynamic
Russell Shaw
rjshaw@netspace.net.au
Mon Jan 16 08:18:00 GMT 2006
Hi,
In the ld manuals, -E and --export-dynamic are listed together, yet they act
completely different:
gcc -std=gnu99 -g -O0 -o rtbinder -E main.o rt.o rtree.o
gcc: main.o: linker input file unused because linking not done
gcc: rt.o: linker input file unused because linking not done
gcc: rtree.o: linker input file unused because linking not done
gcc -std=gnu99 -g -O0 -o rtbinder --export-dynamic main.o rt.o rtree.o
main.o: In function `quit_nicely':/home/russell/GNU/rtbinder/src/main.c:150: undefined
reference to `rtclass'
:/home/russell/GNU/rtbinder/src/main.c:158: undefined reference to `XQueryTree'
:/home/russell/GNU/rtbinder/src/main.c:180: undefined reference to `XInstallColormap'
:/home/russell/GNU/rtbinder/src/main.c:181: undefined reference to `XSetInputFocus'
...
I'm using a pc:
gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
GNU ld version 2.16.91 20051214 Debian GNU/Linux
More information about the Binutils
mailing list