bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] error when built in MinGW-W64-32


From: 林 子
Subject: [bug-gnu-libiconv] error when built in MinGW-W64-32
Date: Fri, 17 Jun 2022 00:19:13 +0000

Hi~

using Win10 x64, gcc in i686-w64-mingw32.

When following INSTALL.windows and INSTALL.generic, there is an error occurs at make stage:

   <command-line>: error: 'C' undeclared (first use in this function)
  ./relocatable.c:483:37: note: in expansion of macro 'INSTALLDIR'
          const char *orig_installdir = INSTALLDIR;
                                        ^~~~~~~~~~
  <command-line>: note: each undeclared identifier is reported only once for each function it appears in
  ./relocatable.c:483:37: note: in expansion of macro 'INSTALLDIR'
          const char *orig_installdir = INSTALLDIR;
                                        ^~~~~~~~~~
  <command-line>: error: expected ',' or ';' before ':' token
  ./relocatable.c:483:37: note: in expansion of macro 'INSTALLDIR'
          const char *orig_installdir = INSTALLDIR;
                                        ^~~~~~~~~~
    make[1]: *** [Makefile:93: relocatable.lo] Error 1
    make[1]: Leaving directory 'H:/TDDOWNLOAD/iconv/libiconv-1.17/lib'
    make: *** [Makefile:33: all] Error 2

Add #define INSTALLDIR "" in "./lib/config.h" could help.

I didn't find the source of "INSTALLDIR" from INSTALL nor *.h, for I only generate configure satisfy Windows.  Maybe just lack default value ("") when using MinGW gcc?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]