Linking to a static library compiled with a different version of gcc

View: New views
1 Messages — Rating Filter:   Alert me  

Linking to a static library compiled with a different version of gcc

by Jean-Luc Aufranc :: Rate this Message:

| View Threaded | Show Only this Message

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?