static libraries - problems using cross-compiled library -


i've cross-compiled library called adol-c on linux windows (mingw). seems ok, when try link new cross-compiled library (libadolc.a) in project on windows find 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 tostd::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 tostd::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 tostd::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)'


if correct, libadolc.a looking includes in linux directory.. don't understand did wrong, maybe while compiling library? should change something?

i thank in advance,

it's not looking includes, linker looking standard library iostreams functionality. linker can't find c++ runtime libraries, , looks did specify on command line - i'd take off (g++ should find them itself), verify libstdc++.a/.so compiler expects try again.

if first project compile mingw chances environment isn't set 100% correctly.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -