My applications (Win32) use DLL version of runtime library, but I want stlport to be linked statically.
I faced the DLL hell because have applications compiled both for VS6 and VS8 and it's quite inconvenient because stlport has the same DLL name.
Is it possible to create stlport 5.1 library for static linkage but the library itself to use threaded DLL runtime library?
I found out how to do that:
configure -c msvc6 --rtl-dynamic
You could also have kept dlls using naming option like that:
configure -c msvc6 --lib-motif vc6
Build the library, it generates:
stlport_vc6.5.1.lib, stlport_vc6.5.1.dll ...
configure -c msvc8 --lib-motif vc8
stlport_vc8.5.1.lib, stlport_vc8.5.1.dll ...
In stlport/stl/config/user_config.h add
#if defined (_MSC_VER)
# if (_MSC_VER == 1200)
# define _STLP_LIB_NAME_MOTIF "vc6"
# elif (_MSC_VER == 1400)
# define _STLP_LIB_NAME_MOTIF "vc8"
That should be added into the documentation.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.