On Thu, 01 Oct 2009 12:57:46 +0200, "Vincent R." <foru...@smartmobili.com> wrote: > Hi, > > I wrote a simple compatibility libarry that implements missing mingw > functions (_errno, getenv,GetCurrentDirectory, ...) > and I am using it to port some software and especially glib and its > dependencies. > The first dependency I am porting is gettext and I got an error when > compiling some C++ code : > > rm -fr .libs/libasprintf.dll.a > arm-mingw32ce-gcc -shared .libs/lib-asprintf.o .libs/autosprintf.o > -Wl,--disable-auto-import -o .libs/libasprintf-0.dll > -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker > .libs/libasprintf.dll.a > Creating library file: .libs/libasprintf.dll.a > .libs/autosprintf.o:/cygdrive/z/cygming-home/Realeyes3D/projects/gettext-0.17/gettext-runtime/libasprintf/autosprintf.cc:75: > undefined reference to `std::basic_string<char, std::char_traits<char>, > std::allocator<char> >::basic_string(char const*, std::allocator<char> > const&)' > .libs/autosprintf.o:/cygdrive/z/cygming-home/Realeyes3D/projects/gettext-0.17/gettext-runtime/libasprintf/autosprintf.cc:75: > relocation truncated to fit: ARM_26 against undefined symbol > `std::basic_string<char, std::char_traits<char>, std::allocator<char> >>::basic_string(char const*, std::allocator<char> const&)' > ... > > I thought it was a problem with cegcc but if I replace arm-mingw32ce-gcc
> by arm-mingw32ce-g++ it seems to produce the dll(don't know if it works > however). > > Do you think it's an issue with cegcc or with gettext makefiles ? > I have compiled with gcc and I can see that g++ is used : libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-cygwin/4.3.4/crtbegin.o .libs/lib-asprintf.o .libs/autosprintf.o -L/usr/lib/gcc/i686-pc-cygwin/4.3.4 -L/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../.. /usr/lib/gcc/i686-pc-cygwin/4.3.4/libstdc++.dll.a -lgcc_s -lgcc_s -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc_s /usr/lib/gcc/i686-pc-cygwin/4.3.4/crtend.o -Wl,--disable-auto-import -o .libs/cygasprintf-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libasprintf.dll.a Creating library file: .libs/libasprintf.dll.a So it's a problem with gettext makefile. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel