This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libintl: undefined reference


hi,

I'm porting my personal version of rpm packet to cygwin and I have a problem with libintl.
When I create my .exe I encountered this problem:
...undefined reference to '_libintl_dgettext';


I have read something about linking with libintl but I don't know what I have to do in the latest version of cygwin.

/bin/sh ./libtool --mode=link gcc -O2 -march=i386 -mcpu=i686 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o rpm2cpio.exe rpm2cpio.o -lintl ./lib/.libs/librpm.a ./rpmdb/. libs/librpmdb.a ./rpmio/.libs/librpmio.a ./popt/.libs/libpopt.a ./zlib/libz.la -lpthread -L./zlib -L/usr/local/lib

gcc -O2 -march=i386 -mcpu=i686 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o rpm2cpio.exe rpm2cpio.o .libs/libimp-cygintl-3.a -L/usr/lib .libs/libimp-cygiconv-2.a ./lib/.libs/librpm.a ./rpmdb/.libs/librpmdb.a ./rpmio/.libs/librpmio.a ./popt/.libs/libpopt.a ./zlib/.libs/libz.al -lpthread -L/usr/src/rpm/BUILD/rpm-4.1.1/zlib -L/usr/local/lib

./lib/.libs/librpm.a(formats.o):formats.c:(.text+0x11d6):undefined reference to`_libintl_dgettext'

./lib/.libs/librpm.a(formats.o):formats.c:(.text+0x124f): undefined reference to`_libintl_dgettext'

collect2: ld returned 1 exit status
make[2]: *** [rpm2cpio.exe] Error 1
make[2]: Leaving directory `/usr/src/rpm/BUILD/rpm-4.1.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/rpm/BUILD/rpm-4.1.1'
make: *** [all] Error 2

What can I do?
I don't know how can I resolve this problem!!
Please, help me.

Matteo Facchinetti




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]