简体   繁体   English

使用visual studio进行32位和64位的增强

[英]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.

相关问题 32位Visual Studio生成64位可执行文件 - 32bit Visual Studio generate 64bit executable Visual Studio - C++ - 以 32 位或 64 位形式构建和运行应用程序 - 从适当的 ProgramFiles 目录加载 DLL - Visual Studio - C++ - build and run app as 32bit or 64bit - load DLL from appropripate ProgramFiles dir 无法使用64位gcc在32位中构建Boost库 - Can't build boost libraries in 32bit with 64bit gcc Visual Studio在为32位编译时尝试使用64位C运行时库 - Visual Studio trying to use 64bit C runtime lib when compiling for 32bit Visual Studio何时生成32bit .obj文件和64bit .obj文件? - When Visual Studio generates 32bit .obj file and 64bit .obj file? Visual Studio 2017在64位系统上以32位编译吗? - Visual Studio 2017 compiles in 32bit on 64 bit system? 区分 32 位和 cl.exe 生成的 64 位 PE 对象文件(Visual Studio C++) - Distinguish a 32bit from a 64bit PE object file generated by cl.exe (Visual Studio C++) MS Visual Studio Professional 2013-C ++可以为32位和64位操作系统编译单个可执行文件吗? - MS Visual Studio Professional 2013 - C++ Compile single executable for 32bit and 64bit operating systems? 64位和32位进程互通boost :: message_queue - 64bit and 32bit process intercommunication boost::message_queue 如何在C ++中同时具有32位和64位浮点数 - How to have both 32bit and 64bit float in C++
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM