开发者

boost and gcc&make - compiler and version agnostic linking

开发者 https://www.devze.com 2023-01-24 23:01 出处:网络
Boost jam creates fancy static library names such as boost_system-mgw45-mt-d-1_44, which contain compiler and library version.

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

精彩评论

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

关注公众号