Crosscompiler Binary compatibility in C

后端 未结 3 1146
心在旅途
心在旅途 2021-02-08 15:06

I need to verify something for which I have doubts. If a shared library ( .dll) is written in C, with the C99 standard and compiled under a compiler. Say MinGw. Then in my exper

3条回答
  •  盖世英雄少女心
    2021-02-08 16:05

    A shared library or dll compiled to a particular architecture can be linked to applications compiled by other compilers that target the same architecture. (By architecture, I mean a processor/OS combination). But it is not practical for a library developer to compile against all possible architectures. Moreover, when a library is distributed in source form, users can build binaries optimized to their specific requirements.

提交回复
热议问题