This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking to a static library compiled with a different version of gcc
- From: Jean-Luc Aufranc <jaufranc at outline dot com dot hk>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 28 Feb 2008 22:58:27 -0800 (PST)
- Subject: Linking to a static library compiled with a different version of gcc
We have some libraries from a vendor compiled with arm-elf-gcc 2.95.3.
However we are using arm-elf-gcc 3.4.3 to compile our code and some third
party code (which won't compile with arm-elf-gcc 2.95.3).
When we get to the link stage we get the following error:
ERROR: ../vendor_library.a(obj.o) uses hardware FP, whereas prog.elf2flt
uses software FP
Both compilers are using the same uClibc version (0.9.26). Is that just a
matter of compiling the cross-compiler (3.4.3) with the right options, is
that more complicated than than or it will simply not work to link a library
compiled with gcc 2.xx with a program compiled with gcc 3.yy?
--
View this message in context: http://www.nabble.com/Linking-to-a-static-library-compiled-with-a-different-version-of-gcc-tp15753143p15753143.html
Sent from the gcc - Help mailing list archive at Nabble.com.