This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

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-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
==========


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