c++ - visual studio compiler how to specify the include path to build cpp -
i using batch file try build cpp program using visual studio's cl.exe. contains:
"c:\program files (x86)\microsoft visual studio 11.0\vc\bin\cl.exe" /i "c:\program files (x86)\microsoft visual studio 11.0\vc\include\" "%1" /fe "%1.exe"
i want compiler include iostream include folder , build .cpp (%1) %1.exe.
instead, get:
microsoft (r) c/c++ optimizing compiler version 17.00.60610.1 x86 copyright (c) microsoft corporation. rights reserved.
cl : command line error d8003 : missing source filename
what doing wrong?
win8.1 x64
do not run cl.exe standard command prompt. use "developer command prompt" installed vs 2015. sets several environment variables you, specific installation.
to read more: https://msdn.microsoft.com/en-us/library/f35ctcxw.aspx
Comments
Post a Comment