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

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

Re: can't compile gettext-0.17 on Mingw on Windows XP (using gcc-3.4.5)


From: haibin zhang
Subject: Re: can't compile gettext-0.17 on Mingw on Windows XP (using gcc-3.4.5)
Date: Mon, 18 Jan 2010 09:24:15 +0800 (CST)

HI Bruno,

How to configure to use USE_WIN32_THREADS?

The following is my configuration parameters:

./configure --prefix=/mingw --disable-java --without-included-glib 
--without-included-libxml CFLAGS="-O2 -Id:/msys/mingw/include/glib-2.0 
-Id:/msys/mingw/lib/glib-2.0/include"  CXXFLAGS=-O2 
LDFLAGS="-Ld:/msys/mingw/lib -lglib-2.0"

Thanks

--- 10年1月18日,周一, Bruno Haible <address@hidden> 写道:

> 发件人: Bruno Haible <address@hidden>
> 主题: Re: can't compile  gettext-0.17 on Mingw on Windows XP (using gcc-3.4.5)
> 收件人: "haibin zhang" <address@hidden>
> 抄送: address@hidden
> 日期: 2010年1月18日,周一,上午1:22
> Hello,
> 
> haibin zhang wrote:
> > When I compile gettext-0.17 on Mingw on Windows XP
> (using gcc-3.4.5),
> > I got the following error, but I have installed
> pthread in /mingw
> > 
> > make[3]: Entering directory
> `/d/d/cdev/gettext-0.17/gettext-runtime/tests'
> > gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I./../intl
> -I/mingw/include  -O2 -Id:/msys/mingw/include/glib-2.0
> -Id:/msys/mingw/lib/glib-2.0/include -c test-lock.c
> > test-lock.c: In function `gl_thread_self':
> > test-lock.c:109: error: cannot convert to a pointer
> type
> > make[3]: *** [test-lock.o] Error 1
> > make[3]: Leaving directory
> `/d/d/cdev/gettext-0.17/gettext-runtime/tests'
> 
> It looks like the macro USE_POSIX_THREADS is defined in
> your build. This should
> be the case on mingw. On mingw, only USE_WIN32_THREADS
> should be defined, not
> USE_POSIX_THREADS.
> 
> This may come from the options you passed to configure, or
> other details that
> you did not show.
> 
> Bruno
> 


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/




reply via email to

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