compile Boost as static Universal binary lib

前端 未结 3 1530
旧巷少年郎
旧巷少年郎 2020-12-30 16:31

I want to have a static Universal binary lib of Boost. (Preferable the latest stable version, that is 1.43.0, or newer.)

I found many Google hits with similar proble

3条回答
  •  长发绾君心
    2020-12-30 17:29

    I found the problem. It seems that the MacOSX 10.4 SDK is missing a bunch of symlinks for GCC 4.2.

    Use this as a test case: g++ on MacOSX doesn't work with -arch ppc64

    It will report multiple errors with GCC 4.2 (missing C++ includes, missing C includes, missing libs). In all cases, you can just fix that by setting a symlink. Search in your SDK for the file and just set the symlink in the same way it is in the MacOSX 10.5 SDK.

    After that, it all just worked.

提交回复
热议问题