Query: precompiled libraries compatible cross platform?

OP #1171660
Rate this post
• ▲ useful
▼ not useful
This issue must be second nature to many, and I apologize for the lack
of challenge!

Would a commercially-available object-code library compiled with GCC be
compatible across platforms and/or GCC versions?

For example, if I get an object-code-only library to support a certain
WiFi peripheral hooked to an SPI on an ARM7, and the manufacturer claims
the library was compiled with GCC, does that naturally mean it is
compatible with both version 3 and 4 of arm-elf-gcc?

Even granted the identical version of arm-elf-gcc, is it also obvious
that the same object-code library file would be linkable on different
platforms, i.e., Windows, Linux, OS X?  Or does gcc require object-code
library files to be compiled per-platform?

Thanks for any wisdom folks have on this! --Bill

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.