User forums > Help

MinGW with STLport

<< < (2/3) > >>

alifehpp:
Thank you, under Visual Studio it called access violation. But why STLport fails under MinGW and not under VS8?
If not use iostreams, all works perfectly. I wonder.

Pecan:

--- Quote from: alifehpp on February 03, 2007, 09:52:35 pm ---Thank you, under Visual Studio it called access violation. But why STLport fails under MinGW and not under VS8?
If not use iostreams, all works perfectly. I wonder.

--- End quote ---

Just my two cents worth. Reading or Writing to an unopened file can cause all sorts of faults.

Michael:

--- Quote from: alifehpp on February 03, 2007, 09:52:35 pm ---Thank you, under Visual Studio it called access violation. But why STLport fails under MinGW and not under VS8?
If not use iostreams, all works perfectly. I wonder.

--- End quote ---

Hello,

GCC and VS8 C++ are two different compilers more or less ISO C++ compliant.

Regarding your problem, did you check that everything is installed correctly (MinGW+binutil+win api, C::B, etc.)? Did you set the path to every include file and library in C::B?

You can try with a newer C::B revision...

Also give a try to a google search with "MinGW with STL Port". With a bit of luck, you should get helpful info.

Best wishes,
Michael

stahta01:
Did you copy the STL DLLs to the project folder that contains the exe?

Tim S

stahta01:
Your test hello world worked for me with STLport STLport-5.0.3, note it did need the DLL for libstlport.5.0.dll to work. Below is my compile commands.
Note, the readme stated that STLport includes must before the normal includes.

-------------- Build: Release in helloworld ---------------
mingw32-g++.exe -Wall -O2  -mthreads  -IC:\apps\MinGW_GCC_3.4.5_API_3_8_STLport\STLport\stlport -IC:\apps\MinGW_GCC_3.4.5_API_3_8_STLport\include  -c C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN_TEST\codeblocks-head-test\codeblocks\src\tests\STLport\helloworld\helloworld.cpp -o obj\Release\helloworld.o
C:/apps/MinGW_GCC_3.4.5_API_3_8_STLport/STLport/stlport/stl/_uninitialized.h: In member function `void stlp_std::vector<_Tp, _Alloc>::_M_insert_overflow_aux(_Tp*, const _Tp&, const stlp_std::__false_type&, size_t, bool) [with _Tp = stlp_std::string, _Alloc = stlp_std::allocator<stlp_std::string>]':
C:/apps/MinGW_GCC_3.4.5_API_3_8_STLport/STLport/stlport/stl/_uninitialized.h:239: warning: '__cur' might be used uninitialized in this function
mingw32-g++.exe -LC:\apps\MinGW_GCC_3.4.5_API_3_8_STLport\STLport\lib -LC:\apps\MinGW_GCC_3.4.5_API_3_8_STLport\lib  -o bin\Release\helloworld.exe obj\Release\helloworld.o   -s  -lstlport.5.0.dll
Info: resolving stlp_std::cout      by linking to __imp___ZN8stlp_std4coutE (auto-import)
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 1 warnings

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version