简体   繁体   中英

VS2013 compile without linking

Is it possible to create a configuration in VS2013 for just compiling the files but skip linking for native C++ projects? I tried the /c option for cl , but I still see that the linker is invoked and the executable is getting generated?

Regards,

Unfortunately, I don't think there is a clean method to do this from the IDE - here's a hint from MSDN :

To set this compiler option in the Visual Studio development environment

This option is not available from within the development environment.

Maybe you can think of a way how to break linker, maybe with two same named global variables in two source files, guarded by a preprocessor define defined in the compile only configuration?

Other way is to compile one file at the time, with CTRL-F7 (or Build -> Compile ).

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