I'm not entirely sure, but I think your problem lies in the fact that you need to produce separate static libraries built to link to the various types of run-time libraries (static and dynamic). You need to produce a library with different warts for each of the different linker options (/MD /MDd /ML /MLd ) and Unicode options if applicable.. This makes about 8 libraries you need to compile for completeness. It's a real pain... however you can make it so the users of the libraries are not too inconvenienced by using the #pragma comment(lib, _libraryName_)
compiler directive. Good luck. //.ichael
M
Michael Geddes
@Michael Geddes
Posts
-
Problem using separate types linker option -
Programatically interrogating a C/C++ enumeration?No, the standard way of doing this is something like
enum MyEnum
{
meVal1 = 0,
meVal2 = 1,
meVal3 = 5,me__MinVal = 0,
me__MaxVal = 5,
me__Count = 3
};Otherwise, enums are just slightly typed constants. They aren't a particularly solid type (like in pascal), but is does have its advantages. //.