This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: --export-dynamic


Russell Shaw wrote:
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


Figured it out. -E is actually a gcc option too.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]