From: Keith M. <kei...@us...> - 2007-06-24 16:21:43
|
On Sunday 24 June 2007 15:38, Yi Yi wrote: > In the other day, I downloaded the source of libiconv-1.11 and tried > compiling it. Well, an error occurred and the compiling was called > off. GNU libiconv-1.11 builds OOTB, for me using either MSYS-1.0.10, or the candidate MSYS-1.0.11. MSYS-1.0.9 is ancient; I recommend upgrading. > My compiling steps were as follows. > > 1. ./configure --prefix=/mingw --target=mingw --enable-static > --enable-extra-encodings --disable-shared Why disable shared? I confess I didn't try this. > 2. After the configure was well completed and the Makefile was > generated, I entered the command "make". > > However, an error occurred when executing the following command. > > ---- gcc -I. -I. -I.. -I./.. -I../include -g -O2 -fvisibility=hidden > "-DLIBDIR=\\/mingw/lib\" -DBUILDING_LIBCHARSET -DBUILDING_DLL > -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/mingw/lib\" > -DNO_XMALLOC -Dset_relocation_prefix=libcharset_set_relocation_prefix > -Drelocate=libcharset_relocate -DHAVE_CONFIG_H -c ./localcharset.c" > -o localcharset.o Did you copy and paste this? Like Daniel Bastos, I'm puzzled by the quoting, especially since the double quotes are unbalanced. > And the error message is "gcc.exe: no input files". Which is correct with that quoting, for everything between the first and the last double quote is wrapped into a single `-D...' option, leaving no source file name visible. Do please note that GNU libiconv-1.11 does not handle Woe32 wchar_t correctly. There is a patch available, which you can get by building using our mingwPORT package: http://downloads.sourceforge.net/mingw/libiconv-1.11-mingwPORT-20070423-1.tar.bz2 Regards, Keith. |