开发者

boost and gcc&make - compiler and version agnostic linking

Boost jam creates fancy static library names such as boost_system-mgw45-mt-d-1_44, which contain compiler and library version. Let's assume that I want to distribute application in sources buildable with standard makefile, and user should install The Boost library himself. Is there any well known ways to determine installed compiler and library version开发者_StackOverflow中文版s to compose static library names?


You could use autoconf and use the various AX_BOOST_ macros, if you check the autoconf-archive. (The archive is often available from your package manager, I know debian and macports have it). If you also use automake, then setting --install in ACLOCAL_AMFLAGS will copy the macro definitions into your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜