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:
#include <vector>
#include <string>
#include <iostream>
int main()
{
std::vector<std::string> vec;
vec.push_back("hello cb");
std::cout << vec[0];
return 0;
}
there are errors:
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
I have Mingw 3.4.5, C::b rev 3558 (31.01) and STLPort 5.1.0
P.S. Sorry for my English.