This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Sep 04, 2003 at 12:33:00AM -0700, Amir Amin wrote: > i want to > linker my library libmylib.a with the new source files. "with new object files", you don't link source files :-) > ip2k-elf-ld -o outfile.elf ... file1.o file2.o -lgcc -lmylib > > it works in this way. Probably mylib calls symbols defined in libgcc, therefore libgcc needs to be linked first. That said, I find it worrying that you need to specify libgcc at all, as it should be linked automatically at all times, so I'd advise you start by looking into why you need that, and try to make it go away (I'm not a specialist in elves, so I might be wrong here though). > Is there some specific reason for this. i have the limitation that in > the IDE i am using, i can only add the command line options with the > executable file name Bad IDE, change IDE :-) HTH, Y. -- This signature left empty. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |