Vc6 STLport-5.1.4 compilation, Installation
1. Open the command line window, establish the VC environment, and execute % msvcdir %/vc98/bin/vcvars32.bat
2. Switch to % STLport-5.1.4 %/build/lib and execute configure-C msvc6-clean to compile the configuration. Where:
-C: select the compiler.
-Clear build configuration files after cleaning.
Run configure -- help to view more options and parameters.
3. Run nmake/fmsvc. Mak or nmake/fmsvc. Mak install, which copies the generated Library to the % STLport-5.1.4 %/lib directory after compilation. We recommend that you use the install parameter.
4.
Open vc6 and add include in tools> Options> directories.
Files path: % STLport-5.1.4 %/stlport, add Library
Files path: % STLport-5.1.4 %/lib, adjust the paths added to both to the first path location.
5.
Modify project options: Project-> Settings...-> C/C ++, select code for category
Generation, and then select debug in use run-time Library
Multithreaded. (For the release version, select multithreaded. If you want to use dynamic link, you must first compile the dynamic link version.
Stlport, and then select the corresponding DLL here)
Vc6 STLport-4.6.2 compilation, install [% STLport-4.6.2 % represents its path, such as C:/stlport, etc]
1 ./*****
A. Modify the vcvars32.bat file in.../vc98/bin and find
Set include = % msvcdir %/ATL/include; % msvcdir %/mfc/include; % include %
Set Lib = % msvcdir %/LIB; % msvcdir %/mfc/LIB; % lib %
Add the stlport path to the two statements as follows:
Set include = % STLport-4.6.2 %/stlport; % msvcdir %/ATL/include; % msvcdir %/mfc/include; % include %
Set Lib = % STLport-4.6.2 %/LIB; % msvcdir %/mfc/LIB; % lib %
(C:/stlport/lib does not exist yet, but you don't have to worry about it. stlport will be available after compiling)
****/
2. Open the command line window, create a VC environment, and execute % Microsoft Visual Studio %/vc98/bin/vcvars32.bat
3. nmake-F vc6.mak clean all (vc6 can also select vc6-unicode.mak files that support Unicode)
4. Configure VC:
Click Tools-options-directories in VC,
Select include files, add % STLport-4.6.2 %/stlport, and move to the beginning
Select library files, add % STLport-4.6.2 %/lib, and move to the beginning
---------------------------------------------------------------------