[英]build boost with both 32bit and 64bit with visual studio
I have configured boost to build both 32bit and 64bit libraries with versioned layout. 我已经配置了boost来构建具有版本化布局的32位和64位库。
However it did not include address model in the file name layout, so the 32bit and 64bit libraries have the same filename and therefore can't share the lib directory. 但是它在文件名布局中不包含地址模型,因此32位和64位库具有相同的文件名,因此无法共享lib目录。
What is the recommended way to have both 32bit and 64bit boost libraries ? 建议使用32位和64位升级库的方法是什么?
The way I solved this problem was by specifying --libdir on the b2 command line and have it point to a different directory. 我解决这个问题的方法是在b2命令行上指定--libdir并让它指向另一个目录。 I called it "libx64" and made the layout look like this: 我称它为“libx64”,并使布局看起来像这样:
include -> With boost underneath it, standard boost layout lib -> Standard boost lib dir, use that for the 32 bit libraries libx64 -> 64 bit libraries only include - >使用它下面的boost,标准的boost布局lib - >标准的boost lib dir,用于32位库libx64 - >仅64位库
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.