1
votes

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.

1
Have you double checked trivial faults like wrong paths (relative or absolute), not existing files, ..?danijar
Are you allowed to use "devenv" directly? Example: devenv /build "Release|win32" myproject.sln. denenv can usually be found in your Program Files directory, where your VS2010 is installed, under "Common7\IDE".LMC
@LMC I'll test it out right now. thanks.andre
@sharethis: It works in the IDE so I assume everything is set correctly. However, since it does not hurt to double check I'll do just that.andre

1 Answers

1
votes

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