This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
--export-dynamic
- From: Russell Shaw <rjshaw at netspace dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 16 Jan 2006 19:18:02 +1100
- Subject: --export-dynamic
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