Static STLport
Building STLport as a static library for MSVC++.
I have had to use static versions of STLport in order to avoid distributing a DLL. This does create extremely large files, but it can be done by using a few extra steps, which I have documented here.
1. Setup the environment variables
When using VC++ from the command line, it is necessary to run vcvars32.bat. This is typically found in the Program Files\Microsoft Visual Studio .NET\vc7\bin directory.
2. Configure the make file for static linking to STLport, and dynamic linking to the C runtime library
configure -c msvc7 --rtl-static
Also, be sure to uncomment _STLP_USE_STATIC_LIB in stlport\stl\_site_config.h.
3. Make the library
nmake -f nmake-vc70.mak install-release-static install-dbg-static install-stldbg-static
When building applications that use the static STLport libraries, the project will need to have the runtime settings set to Multi-threaded.
