Compiling on the command line in Visual C++

后端 未结 3 1343
情深已故
情深已故 2021-01-13 01:38

Does anyone know how to use the command line compiler (\'cl\' and \'link\') in Visual C++ to build a project? We are more used to \'make\' and \'gcc\' here, but were recentl

3条回答
  •  清歌不尽
    2021-01-13 02:13

    As I tend to always say, anything Microsoft related can be found on MSDN and a quick trip to google.

    cl.exe is documented here: http://msdn.microsoft.com/en-us/library/ms235639%28v=vs.100%29.aspx

    It's pretty simple just enter the directory of cl.exe and write in the cmd.

    cl.exe /? and then it will list all the available flags.

提交回复
热议问题