简体   繁体   中英

How to disable link step in VS2013 project configuration?

I would like to disable the linker for a particular project configuration of a VS2013 C++ project. How can I do this?

I have tried to remove the output path, remove the <Link> parts of the project file, but this only results in error messages ("error : The OutputPath property is not set for project" / "error: The output paths do not match" etc.)

The reason is that this particular configuration does preprocessing to file so no object files are created, which always results in a linker error.

There is a compiler switch /c to "compile only". Unfortunately this is only available outside of Visual Studio. So you would need to build the project on the command line using cl.exe.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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