Re: [gtkmm] compile problem with libstdc++.la



First of all, I would advise you to use gtkmm-2.2 binaries from
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ 
along with gtk+-2.2 from either http://www.dropline.net/gtk/ (in case
you use an installer) or from http://www.gimp.org/~tml/gimp/win32/ 
(otherwise). 

And regarding compilation problem - just remove (or rename) .la files
from mingw distribution, including libstdc++.la - for some reason
they seem to confuse libtool.

Alex Y.

On Fri, Mar 14, 2003 at 01:47:16PM +0100, Brian Warner wrote:
> 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.
> 
> _________________________________________________________________
> 
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

-- 
   _ 
 _( )_
(     (o___           +-----------------------+
 |      _ 7           | Alexander  Yukhimets  |
  \    (")            | http://www.AlexY.org  |
  /     \ \           +-----------------------+



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