It's wrong
The OSG links against the DLL version of the CRT which is msvcrt.lib (and needs msvcrt.dll at runtime). Libcmt is the static version of the multi-threaded runtime (libc.lib the static single-threaded) and should not be used. I don't know why Microsoft continues to ship the static versions because of the problems you mentioned: two executables/DLLs should always link against the same CRT to avoid binary compatibility issues. To solve the problem altogether the paradigm used in the OSG and other libs is to systematically link against msvcrt.lib (Project config -> C/C++ -> Code generation -> Multi-threaded DLL). Hopefully this is now the default in VS 8 but you have to change this for projects created in VS 6 and 7(1).

Regards

Thibault
Thank you, so I memorized this wrong. I will carefully look if some part of my project links against the wrong dll. I pretty much guess that I configured wxWidgets to link static runtime, probably the problems come from there.

Just for the information: Is there a single-threaded dynamic runtime as well? msvcr.dll, for instance?

Thanks,

Andreas


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to