Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Lostship/MinGW: Difference between revisions

From ZeroWiki
imported>Unknown
No edit summary
 
(Repair batch-0008 pages from live compare)
 
Line 20: Line 20:
{| class="wikitable"
{| class="wikitable"
|-
|-
| {{{~cpp g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32}}}
| <code>g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32</code>
|-
|-
| {{{~cpp g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32 -mwindows}}}
| <code>g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32 -mwindows</code>
|}
|}


Line 32: Line 32:
----
----
[[lostship]]
[[lostship]]

Latest revision as of 01:40, 27 March 2026

윈도우 환경에 gcc 와 STLport 설치


설치법

  • MinGW 인스톨 후 MSYS 를 인스톨 한다. MinGW & MSYS
  • 환경변수 path 에 /MinGW/bin 을 추가 한다.
  • STLport 를 받고 압축을 푼다. STLport
ex /MinGW/STLport-4.5.3
  • /STLport-4.5.3/doc/index.html 에서 컨피그 셋팅을 보고 필요하면 수정한다.
  • STLport iostreams 을 사용하려면 다음 스텝을 진행한다.
    • /msys/1.0/msys.bat 를 실행하여 콘솔 창을 뛰운다.
    • /mingw/STLport-4.5.3/src 로 이동한다.
    • make -f gcc-mingw32.mak clean install 를 실행한다. 그러면 /STLport-4.5.3/lib 에 생성된다.
    • .dll.4.5 파일들을 path 가 잡힌 디렉토리로 복사 한다.

application 을 STLport library 와 함께 컴파일 하는 예

g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32
g++ -o out -Id:/MinGW/STLport-4.5.3/stlport test.cpp -Ld:/MinGW/STLport-4.5.3/lib/ -lstlport_mingw32 -mwindows

문제점

  • gcc 3.2 버전에서 c++ 헤더 파일의 위치가 바뀐점이 STLport-4.5.3 에 아직 적용이 안되어 있다.
    • /STLport-4.5.3/stlport/config 에 있는 stl_gcc.h 에서 다음을 수정한다.
    • ../g++-v3 를 c++/3.2 로 바꾸도록한다.

lostship