Search code examples
c++visual-studiovisual-studio-2010object-files

Generate object files ".o" while compiling project in Visual Studio C++


I'm trying to generate the ".o" output of my ".cpp" files of my project in Microsoft Visual Studio C++ 2010.

I already found the answer that says that to compile without link you have to just press Ctrl+F7, however where is that object file created?


Solution

  • Visual Studio creates *.obj files, which are always created, if you link them or not. The default directories are "Debug" and/or "Release", but this depends on the project settings.