I need to build a VC++ 2010 project on Windows command line using MSBuild. The projects builds file using VC++ 2010 but it fails to build on the command line.
The failures are all in the form fatal error C1083: Cannot open include file: ‘boost/…/.hpp’: No such file or directory
I would like to know…
1) Why does this occur on the command line and not the IDE?
2) How can I add boost include and lib via the command line.
Even though it’s deprecated, it’s still supported if you want to build with the dev-studio directly via the cmd-line. I’ve tried a few times to use MSBuild but keep going back due to issues. e.g.
[path-to-tools]\devenv.exe my_project.sln /build "Release|x64" /project my_project