One issue confused me for two days. Mac OS X version lower than 10.3.9 does not provide two C++ standard dynamic libraries:
libstdc++.6.dylib, libgcc_s.1.dylic
So if you deploy an application to link C++ standard library by dynamic way, it cannot launch on OS X prior to 10.3.9, console error message will tell you that you miss the two dylibs we mentioned above. The solution is to link C++ standard library by static way.
Tips:
OS X use otool as the substitution of "ldd" on Unix/Linux, which can print library dependency information of specified application or libraries with "-L" argument
Mac OS X - Application's Development (1) - C++ Programming
最新推荐文章于 2021-08-09 15:47:34 发布