Hello guys,
I've cross-compiled a library called Adol-c on linux for windows (mingw). It seems to be ok, but when I try to link this new cross-compiled library (libadolc.a) in my project on windows i find the following problems:
g++ -LC:\1500TB\libs\Cross-ADOL-C-2.1.0\adolc_base\lib -mwindows -oteste.exe src\main.o -ladolc -lstdc++ -lm
C:\1500TB\libs\Cross-ADOL-C-2.1.0\adolc_base\lib/libadolc.a(adouble.o): In function ZNSirsERd':
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/istream:219: undefined reference to
std::istream& std::istream::_M_extract(double&)'
C:\1500TB\libs\Cross-ADOL-C-2.1.0\adolc_base\lib/libadolc.a(adouble.o): In function ZNSolsEd':
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/ostream:214: undefined reference to
std::ostream& std::ostream::_M_insert(double)'
C:\1500TB\libs\Cross-ADOL-C-2.1.0\adolc_base\lib/libadolc.a(adouble.o): In function operator<< <std::char_traits<char> >':
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/ostream:517: undefined reference to
std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)'
if I am correct, libadolc.a is looking for includes in my linux directory.. I don't understand what I did wrong, maybe something while I was compiling the library? should I change something?
I thank you in advance,