On 4/17/07, Andreas Goebel <[EMAIL PROTECTED]> wrote:


>
> 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.


(Hope I haven't sounded rude, I didn't mean to)

W.r.t to wxWidgets, you have to open the build\msw\wx_dll workspace and
select the "DLL [Unicode] [Debug/Release]" configurations.Well those
configuration do link against the multi-threaded DLL for sure - I don't know
if others do as well.

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


Nope, I guess that the DLL loader is multithreaded or something like that.
Anyway, the CL compiler has 3 runtimes only, 2 of which are static and
should be avoided each time you do something more complex than Hello World
:)

Thanks,

Andreas


Regards

Thibault


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

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

Reply via email to