Monday, April 26, 2010

Archive from 15_10_08 - Updating CppUnit for Visual Studio 2008

Hi,
If you are trying to compile CppUnit 1.12.1 with Visual Studio 2008, here are the changes you will need to make to the project settings to get it to all work without problems.
BTW my build target it WindowXP SP2. If you are building with for a different SDK you may need to tweak things. See this page on MSDN for the relevant Hex codes.
http://msdn.microsoft.com/en-us/library/aa383745(VS.85).aspx
For the Debug Static Build
Add WINVER=0x0502 to the pre-processor symbols for each of the following projects:
* DLLPlugInTester
* DSPlugIn( Only if you want to build this for some strange reason)
* TestPlugInRunner
* TestRunner
Add OEMRESOURCE to the pre-processor symbols for:
* TestPlugInRunner

Change the manifest file name in the Manifest Tool output for DSPlugIn from
$(IntDir)\$(TargetFileName).embedded.manifest
to
$(IntDir)\$(TargetFileName).intermediate.manifest
Again, this is only relevant if you want to build DSPlugIn. Remember this is a plugin for Visual Studio 6.0.
For the Release Unicode Build.
Add WINVER=0x0502 to the pre-processor symbols for projects:
* TestRunner
* DLLPlugInTester
* TestPlugInRunner
Add OEMRESOURCE to the pre-processor symbols for project:
* TestPlugInRunner
And it should all build nicely.
I would assume the same holds true for the other build configurations.

Enjoy,

No comments:

Post a Comment