Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4225) mingw32 & libiconv problem
Home

[Freeciv-Dev] Re: (PR#4225) mingw32 & libiconv problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4225) mingw32 & libiconv problem
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 May 2003 12:26:32 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Per I. Mathisen wrote:
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../common -I./../ai -I../intl    -g
> -O2 -Wall -mms-bitfields -c `test -f 'civserver.c' || echo
> './'`civserver.c
> gcc  -g -O2 -Wall -mms-bitfields   -o civserver.exe  civserver.o
> ../common/libcivcommon.a ../ai/libcivai.a ./libcivserver.a
> ../common/libcivcommon.a ../ai/libcivai.a ./libcivserver.a  -lz  -lwsock32
> ../common/libcivcommon.a(shared.o): In function `convert_string_malloc':
> d:/workspace/freeciv/freeciv/common/shared.c:1248: undefined reference to
> `_imp__libiconv_open'
> 
> In config.h, I got
> 
>   /* Define if you have the iconv() function. */
>   #define HAVE_ICONV 1
> 
>   /* Define as const if the declaration of iconv() needs const. */
>   #define ICONV_CONST const
> 
> Also
> 
>   $ pkg-config --version iconv
>   0.14.0
> 
> I ran with $ ./configure --disable-nls
> 
> This problem was not present in 1.14.0, I think.

1.14.0 didn't use iconv.  But 1.14.1 does, as does current CVS.

I'm not sure how to fix the linking problem.  I guess you'll need to 
compile iconv in mingw, and change configure.* to include that library 
in linking.

jason




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