简体   繁体   English

我可以在同一文件夹中为mingw和Windows构建增强功能吗?

[英]Can I build boost for mingw and windows from same folder?

So I have a folder with boost 1.44.0 and I need both msvc and MinGW binary libraries. 所以我有一个带有boost 1.44.0的文件夹,并且我需要msvc和MinGW二进制库。 I have already done the msvc build and need to do the MinGW gcc build next. 我已经完成了msvc构建,接下来需要进行MinGW gcc构建。 Can I build from the same folder? 我可以从同一文件夹进行构建吗? My reasoning is this should not create a problem as the .a/ .so libraries are just placed in the same lib folder but the headers/sources and not modified. 我的理由是,这应该不会造成问题,因为.a / .so库只是放在相同的lib文件夹中,但是标头/源没有修改。 Is this correct understanding? 这是正确的理解吗? My goal is to have the same build tree and the libraries in the same folder. 我的目标是在相同的文件夹中拥有相同的构建树和库。

The two builds are not done concurrently of course. 当然,这两个构建不是同时完成的。

That should be fine. 那应该没问题。 Libraries are just files on the harddisk so they can easily coexist in the same folder, as long as they have different names. 库只是硬盘上的文件,因此只要它们具有不同的名称,它们就可以轻松共存于同一文件夹中。

In summary: yes your assumptions are correct. 总结:是的,您的假设是正确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM