简体   繁体   English

如何在命令行上构建VC ++ 2010项目?

[英]How to build a VC++ 2010 project on the command line?

I need to build a VC++ 2010 project on Windows command line using MSBuild. 我需要使用MSBuild在Windows命令行上构建VC ++ 2010项目。 The projects builds file using VC++ 2010 but it fails to build on the command line. 这些项目使用VC ++ 2010构建文件,但是无法在命令行上构建。

The failures are all in the form fatal error C1083: Cannot open include file: 'boost/.../ .hpp': No such file or directory 故障全部以致命错误C1083的形式出现:无法打开包含文件:'boost /.../ .hpp':没有此类文件或目录

I would like to know... 我想知道...

1) Why does this occur on the command line and not the IDE? 1)为什么在命令行而不是IDE上发生这种情况?

2) How can I add boost include and lib via the command line. 2)如何通过命令行添加boost include和lib。

Even though it's deprecated, it's still supported if you want to build with the dev-studio directly via the cmd-line. 即使已弃用它,但如果您想直接通过cmd行使用dev-studio进行构建,也仍然受支持。 I've tried a few times to use MSBuild but keep going back due to issues. 我已经尝试过几次使用MSBuild,但是由于问题而继续前进。 eg [path-to-tools]\\devenv.exe my_project.sln /build "Release|x64" /project my_project 例如[path-to-tools]\\devenv.exe my_project.sln /build "Release|x64" /project my_project

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

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