From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert" To: "'Robert'" , Subject: RE: undefined reference to `_imp__gettext' Date: Fri, 22 Dec 2000 02:51:00 -0000 Message-id: <000a01c06c02$f9d78780$c9a87995@drives.eurotherm.co.uk> X-SW-Source: 2000-12/msg00138.html More information: Running nm on libbackend.a gives the following:- /src [616] nm /tmp/build/gcc-sh-elf/gcc/libbackend.a | grep _imp__gettext U __imp__gettext U __imp__gettext U __imp__gettext Note the "__" prefix, the undefined reference to `_imp__gettext' has only one "_" is this the problem. I am building the latest CVS sources (as of 21/12/00) using the latest cygwin. I have also tried the sh-elf target which unsurprisingly gives the same results. Any help greatly appreciated. Robert > -----Original Message----- > From: Robert [ mailto:robert.melchers@drives.eurotherm.co.uk ] > Sent: 20 December 2000 13:30 > To: 'gcc-help@gcc.gnu.org' > Subject: undefined reference to `_imp__gettext' > > > Does anyone know what I am doing wrong ? > > Using the following configure command > > /src/gcc/configure --target=sh-coff \ > --prefix=/sh-tools \ > --exec-prefix=/sh-tools/sh-coff-3.xx \ > --with-gnu-as --with-gnu-ld --with-newlib \ > -v 2>&1 | tee configure.out > > and the make command > > make -w all install LANGUAGES="c c++" 2>&1 | tee make.out > > I get the following errors > > ----------- clip -------------- > > ..... > > if [ -f ranlib ] || [ -f /usr/bin/ranlib -o -f /bin/ranlib ] > ; then ranlib libbackend.a ; else true ; fi > gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1.exe \ > c-parse.o c-lang.o c-errors.o c-lex.o c-pragma.o c-decl.o > c-typeck.o c-convert.o c-aux-info.o c-common.o c-semantics.o > c-dump.o libcpp.a toplev.o libbackend.a obstack.o > -ladvapi32 ../libiberty/libiberty.a > c-parse.o: In function `yyerror': > /tmp/build/gcc/gcc/c-parse.y:2344: undefined reference to > `_imp__gettext' > c-decl.o: In function `finish_struct': > /src/gcc/gcc/c-decl.c:5349: undefined reference to `_imp__gettext' > /src/gcc/gcc/c-decl.c:5352: undefined reference to `_imp__gettext' > /src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext' > /src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext' > c-typeck.o:/src/gcc/gcc/c-typeck.c:3340: more undefined > references to `_imp__gettext' follow > toplev.o: In function `main': > /src/gcc/gcc/toplev.c:4538: undefined reference to > `_imp__bindtextdomain' > /src/gcc/gcc/toplev.c:4539: undefined reference to `_imp__textdomain' > toplev.o: In function `print_switch_values': > /src/gcc/gcc/toplev.c:4989: undefined reference to `_imp__gettext' > /src/gcc/gcc/toplev.c:5018: undefined reference to `_imp__gettext' > libbackend.a(timevar.o): In function `timevar_print': > /src/gcc/gcc/timevar.c:428: undefined reference to `_imp__gettext' > /src/gcc/gcc/timevar.c:476: undefined reference to `_imp__gettext' > libbackend.a(timevar.o): In function `print_time': > /src/gcc/gcc/timevar.c:514: undefined reference to `_imp__gettext' > libbackend.a(diagnostic.o):/src/gcc/gcc/diagnostic.c:917: > more undefined references to `_imp__gettext' follow > collect2: ld returned 1 exit status > make[1]: *** [cc1.exe] Error 1 > make[1]: Leaving directory `/tmp/build/gcc/gcc' > make: *** [all-gcc] Error 2 > make: Leaving directory `/tmp/build/gcc' > > ----------- clip -------------- > > I think it has something to do will shared libraries more > than that I don't know. > > > I am using the following version of gcc. > > /src/gcc [532] gcc -dumpversion > 2.95.2-4 > /src/gcc [533] gcc -dumpmachine > i686-pc-cygwin > > > Robert Melchers > ==========