[gtkmm] compile problem with libstdc++.la



Hi,

I'm porting an application from linux to Windows with Mingw and MSYS, I've found a binary version of gtkmm on the web, but when I use it, I've got problem with the function :
try {
Glib::RefPtr<Gdk::Pixbuf> pPixbuf = Gdk::Pixbuf::create_from_file("Myimage.png");
}
catch....

It finds my picture, but can't manage it cause it throws me an exception.

So I want to recompile the library (version 2.0.2). I make the configure like this :
./configure --build=i386-pc-mingw32

all is ok, but when I run the make I've got this :
*** Warning: This library needs some functionality provided by c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2/../../..//libstdc++.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

And after I've got many undefined reference linked of course with libstdc++.a :

generate_extra_defs.lo: In function `Z14get_propertiesm':
c:/MinGW/include/c++/3.2/mingw32/bits/atomicity.h:50: undefined reference to `std::string::_S_empty_rep_storage'
generate_extra_defs.lo: In function `Z14get_propertiesm':
c:/MinGW/include/c++/3.2/bits/basic_string.h:208: undefined reference to `std::string::_S_empty_rep_storage'
generate_extra_defs.lo: In function `Z14get_propertiesm':
c:/MinGW/include/c++/3.2/bits/stl_alloc.h:630: undefined reference to `std::string::string(char const*, std::allocator<char> const&)'
etc...

But the files libstdc++.a and libstdc++.la are in my /c/mingw/lib. So why doesn't it use it ?

Thanks for any answer,
Fabrice Louis.

_________________________________________________________________





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]