Skip to main content
deleted 119 characters in body
Source Link
Andrew Shepherd
  • 45.2k
  • 33
  • 145
  • 211

I upgraded my CPPUNIT projects to visual studio 2010 and had to manually fix it. This is to do withThe problem in the build was in the final copy methodsactions where the output files are copied.

For the cppunit_dll project, one of the custom commands is:

copy "$(TargetPath)" ..\..\lib\$(TargetName).dll
copy "$(TargetDir)$(TargetName).lib" ..\..\lib\$(TargetName).lib

$(TargetName) is "cppunit_dll".

This conflicts with what we're actually building: if you look at the Linker options, you see that the output file name is "cppunitd_dll.dll".

The solution I used is to go to ConfigurationPropertys\General, and change "Target Name" from $(ProjectName) to"cppunitd_dll".

I had to to a similar solution for the cppunit project.

Why did this happen? Is this the best workaround? I don't know - my curiosity rapidly diminished once it was fixed. :-)

I upgraded my CPPUNIT projects to visual studio 2010 and had to manually fix it. This is to do with the final copy methods.

For the cppunit_dll project, one of the custom commands is:

copy "$(TargetPath)" ..\..\lib\$(TargetName).dll
copy "$(TargetDir)$(TargetName).lib" ..\..\lib\$(TargetName).lib

$(TargetName) is "cppunit_dll".

This conflicts with what we're actually building: if you look at the Linker options, you see that the output file name is "cppunitd_dll.dll".

The solution I used is to go to ConfigurationPropertys\General, and change "Target Name" from $(ProjectName) to"cppunitd_dll".

I had to to a similar solution for the cppunit project.

Why did this happen? Is this the best workaround? I don't know - my curiosity rapidly diminished once it was fixed. :-)

I upgraded my CPPUNIT projects to visual studio 2010 and had to manually fix it. The problem in the build was in the final actions where the output files are copied.

For the cppunit_dll project, one of the custom commands is:

copy "$(TargetPath)" ..\..\lib\$(TargetName).dll
copy "$(TargetDir)$(TargetName).lib" ..\..\lib\$(TargetName).lib

$(TargetName) is "cppunit_dll".

This conflicts with what we're actually building: if you look at the Linker options, you see that the output file name is "cppunitd_dll.dll".

The solution I used is to go to ConfigurationPropertys\General, and change "Target Name" from $(ProjectName) to"cppunitd_dll".

I had to to a similar solution for the cppunit project.

Source Link
Andrew Shepherd
  • 45.2k
  • 33
  • 145
  • 211

I upgraded my CPPUNIT projects to visual studio 2010 and had to manually fix it. This is to do with the final copy methods.

For the cppunit_dll project, one of the custom commands is:

copy "$(TargetPath)" ..\..\lib\$(TargetName).dll
copy "$(TargetDir)$(TargetName).lib" ..\..\lib\$(TargetName).lib

$(TargetName) is "cppunit_dll".

This conflicts with what we're actually building: if you look at the Linker options, you see that the output file name is "cppunitd_dll.dll".

The solution I used is to go to ConfigurationPropertys\General, and change "Target Name" from $(ProjectName) to"cppunitd_dll".

I had to to a similar solution for the cppunit project.

Why did this happen? Is this the best workaround? I don't know - my curiosity rapidly diminished once it was fixed. :-)