From: Hadi A. <ha...@cb...> - 2004-06-03 17:17:03
|
Hi, I am using W2k SP4. I have STLport-5.0-0125.tar.gz and want to compile it under MinGW (gcc version 3.2.3 (mingw special 20030504-1)). I think I could compile the library without any problem. But, if I try to link the sample program with the dlls, such as libstlport_mingw32.dll.5.0, the program doesn't run properly. Here I link the program with the dlls. D:\STLport\test\eh>g++ -o test.exe test.cpp -O2 -Id:/stlport/stlport -Ld:/stlport/lib -lstlport_mingw32 Info: resolving __ZN4_STL4coutE by linking to __imp___ZN4_STL4coutE (auto-import) D:\STLport\test\eh>test vector: But, if I link the program with the static library : D:\STLport\test\eh>g++ -o test.exe test.cpp -O2 -Id:/stlport/stlport -Ld:/stlport/lib -lstlport_mingw32_static D:\STLport\test\eh>test vector: 1 1 set1 : 1 set2 : 1 Anybody knows the problem ? Thanks, Hadi http://www.hadi.webaddicted.net/ -- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.642 / Virus Database: 410 - Release Date: 3/25/2004 |