This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Can you create a shell script (say "mygcc"), and then mygcc calls "gcc -lc"? Roger Racine wrote: > > At 09:46 AM 8/13/1999 , Matthew Majka wrote: > >Roger Racine wrote: > >> > >> > >> The linker gives me the following message: > >> > >> --- > >> > $/usr/local/cygnus/ecosSWtools-990319/H-i686-pc-linux-gnu/bin/powerpc-eabi-g > >> cc test_ppc.c > >> > /usr/local/cygnus/ecosSWtools-990319/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc > >> -eabi/2.9-ecosSWtools-990319/../../../../powerpc-eabi/bin/ld: warning: > >> cannot find entry symbol _start; defaulting to 01800074 > >> /tmp/cca166161.o: In function `main': > >> /tmp/cca166161.o(.text+0x28): undefined reference to `strlen' > >> collect2: ld returned 1 exit status > >> --- > >> > >> Is there an easy way to fix this, or do I need to create a completely new > >> configuration (modifying "configure" and creating a new ".h" file in > >> config/rs6000) for this type of system? Thanks. > > > >Why not simply include '-lc' in your link? > > > > 1) Because I am using a tool that automatically calls gcc. I have not yet > figured out how (if it is possible) to pass the '-lc' to the linker at the > right place using this tool (it seems to pass linker parameters at the > front of the command, not at the end. '-lc' needs to be at the end. > 2) Because it should work without it. That is what the configuration files > are for. > 3) Because others will be using the cross development system, and I do not > want to make them have to add '-lc' to all their links. > > Roger Racine > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com -- Mark ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |