This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined reference to `_imp__gettext'
- To: <gcc-help at gcc dot gnu dot org>
- Subject: undefined reference to `_imp__gettext'
- From: "Robert" <robert dot melchers at drives dot eurotherm dot co dot uk>
- Date: Wed, 20 Dec 2000 13:29:31 -0000
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-protot
ypes -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
==========