Sunday, July 26, 2009

How do I link a .cpp to a .obj?

I created and compiled a C++ program in Microsoft Visual C++ 2008 Express. I have both the .cpp and the .obj and I want to make it a .exe to run it. So can I do this with Viusal C++ or do I write another program?

How do I link a .cpp to a .obj?
In VS go to the build options. In the options, set the build to "release" and not debug. The next time you build, it'll make an ".exe" file for you in the \release folder.


No comments:

Post a Comment