It sounds like you're mixing objects that were compiled with different options for C run-times. Is IDT_DUKPT.lib
a static library (a collection of object files rather than an import library for a separate DLL)? If it is, I'd guess one was compiled using /MTd
while the other is using the /MD
option.
See http://msdn.microsoft.com/en-us/library/abx4dbyh(v=vs.80).aspx for details.
There are a few ways you could fix this. The easiest is probably to change the compiler flags for your app to use whichever of /MDd
or /MTd
it wasn't already using:
- Right click on the relevant csproj in Solution Explorer and select Properties
- In the dialog that appears, expand C/C++ then select Command Line
- In the options box on the right of the dialog, add
/MTd
or/MDd
- For completeness, change the configuration to Release and add
/MT
or/MD
to its compiler options