-
STLport with Mingw
I've been trying to install STL with my Mingw compiler but I can't get the iostreams to work, other programs that uses the STL but not iostreams compiles succesfully using the STLport (I already added the STLport\stlport to the compiler's path, of course), I already compiled succesfully the libraries and added the STLport\lib dir succesfully to linker paths in CodeBlocks and even tried to make it link all of the library files in STLport\lib, but the log gives an error like this:
Code:
Compiling: C:\Documents and Settings\****\Meus documentos\temp.cpp
Linking console executable: C:\Documents and Settings\****\Meus documentos\temp.exe
C:\Documents and Settings\****\Meus documentos\temp.o:temp.cpp:(.text+0xdc): undefined reference to `stlpmtx_std::cout'
C:\Documents and Settings\****\Meus documentos\temp.o:temp.cpp:(.text$_ZN11stlpmtx_std8ios_base23_M_check_exception_maskEv[stlpmtx_std::ios_base::_M_check_exception_mask()]+0x1d): undefined reference to `stlpmtx_std::ios_base::_M_throw_failure()'
collect2: ld returned 1 exit status
Thanks for any help,
Etinin
-
-
Did you find out how to fix the problem, Tonto?
I didn't find any solution in the threads you mencioned :(
Thanks for the help,
Etinin
-
Define this macro _STLP_USE_STATIC_LIB and let us know if you can now link correctly
-
Thanks a lot, it's working now!!
For some strange reason when I tried if before it didn't work, but I tried again now and it worked.
Code:
C:\Documents and Settings\****\Meus documentos>g++ -mthreads -IC:\mingw
\stlport\stlport temp.cpp -LC:\mingw\stlport\bin\ -lstlport.5.0.dll
Info: resolving stlp_std::cout by linking to __imp___ZN8stlp_std4coutE (aut
o-import)