hi there
I am trying to compile opencv 3 statically on windows 7 64 bit using MinGW TDM 64 bit version. I use cmake and i check off the "shared" option before I begin the compilation. During compilation, around 43% progress point, I get the following errors:
Linking CXX executable ..\..\bin\opencv_perf_core.exe c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev[_ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev]+0x0): multiple definition of `std::basic_ostringstream<char, std::char_traits<char="">, std::allocator<char> >::~basic_ostringstream()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002421.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt19basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev[_ZNSt19basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev]+0x0): multiple definition of `std::basic_istringstream<char, std::char_traits<char="">, std::allocator<char> >::~basic_istringstream()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002405.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev[_ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev]+0x0): multiple definition of `std::basic_stringstream<char, std::char_traits<char="">, std::allocator<char> >::~basic_stringstream()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002382.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNKSt15basic_stringbufIcSt11char_traitsIcESaIcEE3strEv[_ZNKSt15basic_stringbufIcSt11char_traitsIcESaIcEE3strEv]+0x0): multiple definition of `std::basic_stringbuf<char, std::char_traits<char="">, std::allocator<char> >::str() const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000415.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE7_M_syncEPcyy[_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE7_M_syncEPcyy]+0x0): multiple definition of `std::basic_stringbuf<char, std::char_traits<char="">, std::allocator<char> >::_M_sync(char*, unsigned long long, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002216.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode[_ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode]+0x0): multiple definition of `std::basic_ostringstream<char, std::char_traits<char="">, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002417.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o):sstream-inst.cc:(.text$_ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode[_ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode]+0x0): multiple definition of `std::basic_stringstream<char, std::char_traits<char="">, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002378.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ios-inst.o):ios-inst.cc:(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate[_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char=""> >::clear(std::_Ios_Iostate)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002756.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ios-inst.o):ios-inst.cc:(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E[_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char=""> >::init(std::basic_streambuf<char, std::char_traits<char=""> >*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002755.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(fstream-inst.o):fstream-inst.cc:(.text$_ZNSt13basic_filebufIcSt11char_traitsIcEEC1Ev[_ZNSt13basic_filebufIcSt11char_traitsIcEEC1Ev]+0x0): multiple definition of `std::basic_filebuf<char, std::char_traits<char=""> >::basic_filebuf()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001392.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(fstream-inst.o):fstream-inst.cc:(.text$_ZNSt13basic_filebufIcSt11char_traitsIcEED1Ev[_ZNSt13basic_filebufIcSt11char_traitsIcEED1Ev]+0x0): multiple definition of `std::basic_filebuf<char, std::char_traits<char=""> >::~basic_filebuf()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001395.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(fstream-inst.o):fstream-inst.cc:(.text$_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode[_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode]+0x0): multiple definition of `std::basic_filebuf<char, std::char_traits<char=""> >::open(char const*, std::_Ios_Openmode)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001377.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSirsERi[_ZNSirsERi]+0x0): multiple definition of `std::istream::operator>>(int&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000942.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi4readEPcx[_ZNSi4readEPcx]+0x0): multiple definition of `std::istream::read(char*, long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000911.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi5tellgEv[_ZNSi5tellgEv]+0x0): multiple definition of `std::istream::tellg()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000915.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi5seekgESt4fposIiE[_ZNSi5seekgESt4fposIiE]+0x0): multiple definition of `std::istream::seekg(std::fpos<int>)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000913.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi10_M_extractIjEERSiRT_[_ZNSi10_M_extractIjEERSiRT_]+0x0): multiple definition of `std::istream& std::istream::_M_extract<unsigned int="">(unsigned int&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000898.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi10_M_extractIyEERSiRT_[_ZNSi10_M_extractIyEERSiRT_]+0x0): multiple definition of `std::istream& std::istream::_M_extract<unsigned long="" long="">(unsigned long long&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000903.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi10_M_extractIfEERSiRT_[_ZNSi10_M_extractIfEERSiRT_]+0x0): multiple definition of `std::istream& std::istream::_M_extract<float>(float&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000897.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSi10_M_extractIdEERSiRT_[_ZNSi10_M_extractIdEERSiRT_]+0x0): multiple definition of `std::istream& std::istream::_M_extract<double>(double&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000895.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[_ZNSo5flushEv]+0x0): multiple definition of `std::ostream::flush()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000951.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5tellpEv[_ZNSo5tellpEv]+0x0): multiple definition of `std::ostream::tellp()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000954.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[_ZNSo5seekpESt4fposIiE]+0x0): multiple definition of `std::ostream::seekp(std::fpos<int>)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000952.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo3putEc[_ZNSo3putEc]+0x0): multiple definition of `std::ostream::put(char)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000950.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5writeEPKcx[_ZNSo5writeEPKcx]+0x0): multiple definition of `std::ostream::write(char const*, long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000955.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_[_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_]+0x0): multiple definition of `std::basic_ostream<char, std::char_traits<char=""> >& std::endl<char, std::char_traits<char=""> >(std::basic_ostream<char, std::char_traits<char=""> >&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002880.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x[_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x]+0x0): multiple definition of `std::basic_ostream<char, std::char_traits<char=""> >& std::__ostream_insert<char, std::char_traits<char=""> >(std::basic_ostream<char, std::char_traits<char=""> >&, char const*, long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002836.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc[_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc]+0x0): multiple definition of `std::basic_ostream<char, std::char_traits<char=""> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char=""> >&, char const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002951.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEs[_ZNSolsEs]+0x0): multiple definition of `std::ostream::operator<<(short)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000989.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSolsEi[_ZNSolsEi]+0x0): multiple definition of `std::ostream::operator<<(int)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000985.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertImEERSoT_[_ZNSo9_M_insertImEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<unsigned long="">(unsigned long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000966.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertIbEERSoT_[_ZNSo9_M_insertIbEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<bool>(bool)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000962.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertIxEERSoT_[_ZNSo9_M_insertIxEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<long long="">(long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000967.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertIyEERSoT_[_ZNSo9_M_insertIyEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<unsigned long="" long="">(unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000968.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertIdEERSoT_[_ZNSo9_M_insertIdEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<double>(double)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000963.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo9_M_insertIPKvEERSoT_[_ZNSo9_M_insertIPKvEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<void const*="">(void const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000961.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(iostream-inst.o):iostream-inst.cc:(.text$_ZNSdD2Ev[_ZNSdD2Ev]+0x0): multiple definition of `std::basic_iostream<char, std::char_traits<char=""> >::~basic_iostream()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000892.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(wstring-inst.o):wstring-inst.cc:(.text$_ZNKSbIwSt11char_traitsIwESaIwEE4findEPKwyy[_ZNKSbIwSt11char_traitsIwESaIwEE4findEPKwyy]+0x0): multiple definition of `std::basic_string<wchar_t, std::char_traits<wchar_t="">, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long long, unsigned long long) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000174.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(wstring-inst.o):wstring-inst.cc:(.text$_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_disposeERKS1_[_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_disposeERKS1_]+0x0): multiple definition of `std::basic_string<wchar_t, std::char_traits<wchar_t="">, std::allocator<wchar_t> >::_Rep::_M_dispose(std::allocator<wchar_t> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000778.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(wstring-inst.o):wstring-inst.cc:(.text$_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_destroyERKS1_[_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_destroyERKS1_]+0x0): multiple definition of `std::basic_string<wchar_t, std::char_traits<wchar_t="">, std::allocator<wchar_t> >::_Rep::_M_destroy(std::allocator<wchar_t> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000777.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(wstring-inst.o):wstring-inst.cc:(.text$_ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_[_ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_]+0x0): multiple definition of `std::basic_string<wchar_t, std::char_traits<wchar_t="">, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000849.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNKSs4findEPKcyy[_ZNKSs4findEPKcyy]+0x0): multiple definition of `std::string::find(char const*, unsigned long long, unsigned long long) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000239.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNKSs4findEcy[_ZNKSs4findEcy]+0x0): multiple definition of `std::string::find(char, unsigned long long) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000241.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNKSs5rfindEcy[_ZNKSs5rfindEcy]+0x0): multiple definition of `std::string::rfind(char, unsigned long long) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000252.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNKSs7compareEPKc[_ZNKSs7compareEPKc]+0x0): multiple definition of `std::string::compare(char const*) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000260.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs4_Rep9_S_createEyyRKSaIcE[_ZNSs4_Rep9_S_createEyyRKSaIcE]+0x0): multiple definition of `std::string::_Rep::_S_create(unsigned long long, unsigned long long, std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001025.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs9_M_mutateEyyy[_ZNSs9_M_mutateEyyy]+0x0): multiple definition of `std::string::_M_mutate(unsigned long long, unsigned long long, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001081.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs12_M_leak_hardEv[_ZNSs12_M_leak_hardEv]+0x0): multiple definition of `std::string::_M_leak_hard()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000996.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6assignEPKcy[_ZNSs6assignEPKcy]+0x0): multiple definition of `std::string::assign(char const*, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001044.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6assignEPKc[_ZNSs6assignEPKc]+0x0): multiple definition of `std::string::assign(char const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001043.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs12_S_constructEycRKSaIcE[_ZNSs12_S_constructEycRKSaIcE]+0x0): multiple definition of `std::string::_S_construct(unsigned long long, char, std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000997.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs4_Rep10_M_disposeERKSaIcE[_ZNSs4_Rep10_M_disposeERKSaIcE]+0x0): multiple definition of `std::string::_Rep::_M_dispose(std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001013.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs4_Rep10_M_destroyERKSaIcE[_ZNSs4_Rep10_M_destroyERKSaIcE]+0x0): multiple definition of `std::string::_Rep::_M_destroy(std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001012.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs7reserveEy[_ZNSs7reserveEy]+0x0): multiple definition of `std::string::reserve(unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001078.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6appendERKSs[_ZNSs6appendERKSs]+0x0): multiple definition of `std::string::append(std::string const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001038.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6appendEPKcy[_ZNSs6appendEPKcy]+0x0): multiple definition of `std::string::append(char const*, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001037.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6appendEyc[_ZNSs6appendEyc]+0x0): multiple definition of `std::string::append(unsigned long long, char)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001041.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6resizeEyc[_ZNSs6resizeEyc]+0x0): multiple definition of `std::string::resize(unsigned long long, char)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001059.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC2ERKSs[_ZNSsC2ERKSs]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(std::string const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001100.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC1ERKSs[_ZNSsC1ERKSs]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(std::string const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001087.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs6assignERKSs[_ZNSs6assignERKSs]+0x0): multiple definition of `std::string::assign(std::string const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001045.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC1ERKSsyy[_ZNSsC1ERKSsyy]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(std::string const&, unsigned long long, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001088.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC1EPKcyRKSaIcE[_ZNSsC1EPKcyRKSaIcE]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(char const*, unsigned long long, std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001085.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSs7replaceEyyPKcy[_ZNSs7replaceEyyPKcy]+0x0): multiple definition of `std::string::replace(unsigned long long, unsigned long long, char const*, unsigned long long)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001074.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC2EPKcRKSaIcE[_ZNSsC2EPKcRKSaIcE]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001097.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(string-inst.o):string-inst.cc:(.text$_ZNSsC1EPKcRKSaIcE[_ZNSsC1EPKcRKSaIcE]+0x0): multiple definition of `std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001084.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(locale.o):locale.cc:(.text$_ZNSt6localeD2Ev+0x0): multiple definition of `std::locale::~locale()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002542.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(functexcept.o):functexcept.cc:(.text$_ZSt17__throw_bad_allocv+0x0): multiple definition of `std::__throw_bad_alloc()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002842.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(functexcept.o):functexcept.cc:(.text$_ZSt16__throw_bad_castv+0x0): multiple definition of `std::__throw_bad_cast()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002838.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(functexcept.o):functexcept.cc:(.text$_ZSt19__throw_logic_errorPKc+0x0): multiple definition of `std::__throw_logic_error(char const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002853.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(functexcept.o):functexcept.cc:(.text$_ZSt20__throw_length_errorPKc+0x0): multiple definition of `std::__throw_length_error(char const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002860.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(functexcept.o):functexcept.cc:(.text$_ZSt20__throw_out_of_rangePKc+0x0): multiple definition of `std::__throw_out_of_range(char const*)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002861.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ios.o):ios.cc:(.text$_ZNSt8ios_baseC2Ev+0x0): multiple definition of `std::ios_base::ios_base()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002663.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ios.o):ios.cc:(.text$_ZNSt8ios_baseD2Ev+0x0): multiple definition of `std::ios_base::~ios_base()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002666.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(tinfo.o):tinfo.cc:(.text$_ZNKSt9type_infoeqERKS_+0x0): multiple definition of `std::type_info::operator==(std::type_info const&) const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000745.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream.o):istream.cc:(.text$_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RSbIS4_S5_T1_E+0x0): multiple definition of `std::basic_istream<char, std::char_traits<char=""> >& std::operator>><char, std::char_traits<char="">, std::allocator<char> >(std::basic_istream<char, std::char_traits<char=""> >&, std::basic_string<char, std::char_traits<char="">, std::allocator<char> >&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002998.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(istream.o):istream.cc:(.text$_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RSbIS4_S5_T1_ES4_+0x0): multiple definition of `std::basic_istream<char, std::char_traits<char=""> >& std::getline<char, std::char_traits<char="">, std::allocator<char> >(std::basic_istream<char, std::char_traits<char=""> >&, std::basic_string<char, std::char_traits<char="">, std::allocator<char> >&, char)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002891.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_catch.o):eh_catch.cc:(.text$__cxa_begin_catch+0x0): multiple definition of `__cxa_begin_catch' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d003598.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_catch.o):eh_catch.cc:(.text$__cxa_end_catch+0x0): multiple definition of `__cxa_end_catch' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d003603.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_exception.o):eh_exception.cc:(.text$_ZNSt9exceptionD2Ev+0x0): multiple definition of `std::exception::~exception()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002788.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text$_ZNKSt13runtime_error4whatEv+0x0): multiple definition of `std::runtime_error::what() const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000386.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text$_ZNSt13runtime_errorD2Ev+0x0): multiple definition of `std::runtime_error::~runtime_error()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001559.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text$_ZNSt13runtime_errorC2ERKSs+0x0): multiple definition of `std::runtime_error::runtime_error(std::string const&)' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d001556.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(ctype.o):ctype.cc:(.text$_ZNKSt5ctypeIcE13_M_widen_initEv+0x0): multiple definition of `std::ctype<char>::_M_widen_init() const' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d000445.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_aux_runtime.o):eh_aux_runtime.cc:(.text$__cxa_bad_typeid+0x0): multiple definition of `__cxa_bad_typeid' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d003597.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text$__cxa_free_exception+0x0): multiple definition of `__cxa_free_exception' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d003605.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text$__cxa_allocate_exception+0x0): multiple definition of `__cxa_allocate_exception' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d003595.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text$_ZSt9terminatev+0x0): multiple definition of `std::terminate()' c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++.dll.a(d002921.o):(.text+0x0): first defined here c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1\libstdc++.a(sstream-inst.o): bad reloc address 0x0 in section `.pdata$_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE9showmanycEv' collect2.exe: error: ld returned 1 exit status modules\core\CMakeFiles\opencv_perf_core.dir\build.make:755: recipe for target 'bin/opencv_perf_core.exe' failed make[2]: *** [bin/opencv_perf_core.exe] Error 1 CMakeFiles\Makefile2:1408: recipe for target 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed
it looks like i am linking against both libstdc++.a and libstdc++.dll.a ! does anyone know why this happens? I saw a post here that is describing a similar problem to mine: http://lists.gnu.org/archive/html/bug-libtool/2011-04/msg00020.html
Thanks H