Search code examples
c++visual-studiobuildcompilation

Why does Visual Studio generate these additional files?


In the output directory where Visual Studio places the compiled executable, there are three additional files of the types *.exp, *.lib, .pdb. I do not need those files and I would like to prevent the compiler from creating them.

This is how my build output directory looks like. I only need the *.exe file.

output directory with unwanted additional files

What are these additional files for? How can I disable that they are generated? If they are needed for the build process, is there a way to automatically remove them after the executable is created?

I am using Visual Studio 2012. If you need additional details, please comment.


Solution

  • EXP and LIB files But I don't want that .lib or .exp file for my COM library! . You could probably set the location of these files in the "Intermediate Output" setting and not have them in your release folder