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]

Re: compiling problem



>I am currently using MCORE MTCgnu4.0 compiler for one of my projects.
>It is giving compilation errror if I am calling sscanf or sprintf
>function .
>The error is coming like this.

Which command are you using to link, mcore-elf-gcc or mcore-elf-ld?

If you use mcore-elf-ld, you have to specify *all* of the libraries
to the linker, including libgcc.a which is where thee floating point
emulation functions are found.  You can find the path to libgcc.a by
running 'mcore-elf-gcc -v -o hello_world hello_world.c' and from the
dump see what libraries are bing passed to mcore-elf-ld.

Hope this helps...

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)

------
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]