2011/11/18 Zygmunt Ptak <[email protected]>: > Hi! > I created cross compiler for triplet i686-w32-mingw32 (and for test > i686-w64-mingw32) based on mingw-w64-v2.0, gcc-4.6.2, binutils 2.21.1. > And when i compile simple c++ code, i get error like this: > > // i686-w32-mingw32-g++ test.cpp > > /tmp/ccIOD3tF.o:test.cpp:(.text+0x16): undefined reference to `operator > new[](unsigned int)' > /tmp/ccIOD3tF.o:test.cpp:(.text+0x44): undefined reference to `std::cout' > /tmp/ccIOD3tF.o:test.cpp:(.text+0x49): undefined reference to > `std::basic_ostream<char, std::char_traits<char> >& std::operator<< > <std::char_traits<char> >(std::basic_ostream<char, > std::char_traits<char> >&, char const*)' > /tmp/ccIOD3tF.o:test.cpp:(.text+0x59): undefined reference to > `std::basic_ostream<char, std::char_traits<char> >& std::operator<< > <std::char_traits<char> >(std::basic_ostream<char, > std::char_traits<char> >&, char)' > /tmp/ccIOD3tF.o:test.cpp:(.text+0x72): undefined reference to > `std::ios_base::Init::~Init()' > /tmp/ccIOD3tF.o:test.cpp:(.text+0x95): undefined reference to > `std::ios_base::Init::Init()' > collect2: ld returned 1 exit status > > I was trying to add option -L/path/to/tool/lib and -lstdc++. > But this not work... > > PS: i want use dynamic libraries
Hi Zygmunt, please subscribe to this list before posting to it. Otherwise it might take some time before your message gets moderated, or in rare cases it could get lost due SPAM cleanups. Kai ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
