User forums > Help
MinGW with STLport
alifehpp:
I have problem using Code::Blocks with Mingw and STLport. A "hello, world" project doesn't link.
I try different settings of C::B but i have a linker errors
There is a code:
--- Code: ---#include <vector>
#include <string>
#include <iostream>
int main()
{
std::vector<std::string> vec;
vec.push_back("hello cb");
std::cout << vec[0];
return 0;
}
--- End code ---
there are errors:
--- Code: ---F:/stlport/stlport/stl/_move_construct_fwk.h:104: undefined reference to `_imp___ZN11stlpmtx_std4coutE'
F:/stlport/stlport/stl/_move_construct_fwk.h:104: undefined reference to `_imp___ZN11stlpmtx_std12__node_alloc13_M_deallocateEPvj'
F:/stlport/stlport/stl/_move_construct_fwk.h:104: undefined reference to `_imp___ZN11stlpmtx_std8ios_base16_M_throw_failureEv'
F:/stlport/stlport/stl/_move_construct_fwk.h:104: undefined reference to `_imp___ZN11stlpmtx_std24__stl_throw_length_errorEPKc'
F:/stlport/stlport/stl/_move_construct_fwk.h:104: undefined reference to `_imp___ZN11stlpmtx_std12__node_alloc11_M_allocateERj'
collect2: ld returned 1 exit status
--- End code ---
I have Mingw 3.4.5, C::b rev 3558 (31.01) and STLPort 5.1.0
P.S. Sorry for my English.
wxLearner:
* link with the STLport library
* use multithreading by specifying -mthreads in "Build options => Compiler/Linker => Other Options"
* don't forget, that if you use multithreading, your executable needs the mingwm10.dll, that is in your MinGW bin directory
alifehpp:
Thank you very much, but solve this problem myself. But i have another question, does gcc support auto link?
alifehpp:
I have downloaded new C::B build and application witch build within STLport fails with runtime error. SIGSEGV, Segmentation fault, what it means and how fix it?
Michael:
--- Quote from: alifehpp on February 03, 2007, 07:22:24 pm ---SIGSEGV, Segmentation fault, what it means and how fix it?
--- End quote ---
Hello,
May be this website could help you:
http://en.wikipedia.org/wiki/Segmentation_fault
Also search with google for e.g., "SIGSEGV, Segmentation fault". You should find helpful information :).
Best wishes,
Michael
Navigation
[0] Message Index
[#] Next page
Go to full version