Just a minor issue I’m having here. I have a static library all set and compiled. Since this was a release version, I thought it’d be best to go ahead and compile it using my release configuration (IE, fully optimized, no debugging crap).
That works just fine. However, I have problems whenever I add this library ass a dependency to another project that’s in debug mode. The particular error I get is this:
“warning LNK4204 … is missing debugging information for referencing module; linking object as if no debug info”
Of course, if I go back and recompile my static library using the debug configuration, I won’t get this error. But what I can’t help but wonder is that every time I use another static library (say, openmayaui.lib), I never get a warning like this, even though I’m still using the same library regardless of whether or not I’m in debug mode for my current project. But I somehow doubt that libraries like those included in the Maya API are unoptimized debug releases.
So I have to ask, is there some specific way that I should be compiling my static libraries so that they’ll do well when used in projects that are compiled in both debug and release configurations? Should I just be compiling an optimized build and include debugging info, or something else?
Thanks
