Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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,

like image 835
Chubsdad Avatar asked Jul 11 '26 18:07

Chubsdad


1 Answers

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).

like image 124
Nemanja Boric Avatar answered Jul 13 '26 11:07

Nemanja Boric