1.  http://sourceforge.net/projects/stlport/ 에서 STLport-5.2.1.tar.bz2 를 받는다.
2. 적당한 위치에 압축을 풀고 커맨드 창을 연다. (설명을 위해
 c:\stlport 에 푼 것으로 가정함)
3. Visual C++ 6.0 이 설치된 디렉토리 (C:\Program Files\Microsoft Visual Studio\VC98\Bin) 에서 VCVARS32.BAT 를 입력해서 환경설정을 해준다.

C:\Program Files\Microsoft Visual Studio\VC98\Bin>VCVARS32.BAT

4. c:\stlport\로 이동한다.

C:\Program Files\Microsoft Visual Studio\VC98\Bin>cd c:\stlport

5. configure를 실행한다. (configure --help 를 입력해보면 도움말이 나오니 참고)

C:\stlport>configure --help
C:\stlport>configure msvc6

6. c:\stlport\build\lib 로 이동하여 nmake clean install 을 입력한다.

C:\stlport>cd build\lib
C:\stlport\build\lib>nmake clean install

7. c:\stlport\build\test\unit 으로  이동하여 nmake clean install 을 입력한다. 

C:\stlport\build\lib>cd ..\test\unit
C:\stlport\build\test\unit>nmake clean install

8. 7번 과정에서 에러가 발생하는데 해당 위치의 테스트 코드가 잘못되어 있다.
 - test\unit\ctype_facets_test.cpp 파일의 430 라인을 다음과 같이 변경한 후 다시 7을 수행한다.

CPPUNIT_ASSERT( ct.is(ctype_base::mask(ctype_base::print | ctype_base::lower | ctype_base::alpha), '?) );

CPPUNIT_ASSERT( ct.is(ctype_base::mask(ctype_base::print | ctype_base::lower | ctype_base::alpha), '?') );

9. Visual C++ 의 Options -> Directories 에서 Include files의 최상단에  c:\stlport\stlport 경로를 추가하고, Library files에 c:\stlport\lib 경로를 추가한다.

참고 자료
STLport의 빠른 설치 가이드
- Visual Studio 6.0에 STLport 5.2.1 설치
- STLport 설치 및 사용 For VC6
- STLport와 boost를 VS.NET 2005에서 사용하기
- Visual C++ 2005에서 STLport 5.1.0 빌드

+ Recent posts