From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: EXIT_SUCCESS and NO_RETURN in /lib-src Date: Wed, 14 Feb 2007 16:53:49 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1171464866 4201 80.91.229.12 (14 Feb 2007 14:54:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2007 14:54:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: "William Xue" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 14 15:54:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HHLWO-0004fj-Df for ged-emacs-devel@m.gmane.org; Wed, 14 Feb 2007 15:54:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHLWO-0006TE-2q for ged-emacs-devel@m.gmane.org; Wed, 14 Feb 2007 09:54:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHLWA-0006R4-EL for emacs-devel@gnu.org; Wed, 14 Feb 2007 09:53:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHLW8-0006OG-UA for emacs-devel@gnu.org; Wed, 14 Feb 2007 09:53:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHLW8-0006Nz-Q8 for emacs-devel@gnu.org; Wed, 14 Feb 2007 09:53:56 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHLW8-0002fM-BB for emacs-devel@gnu.org; Wed, 14 Feb 2007 09:53:56 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-127-141.inter.net.il [84.229.127.141]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GAX74162 (AUTH halo1); Wed, 14 Feb 2007 16:53:45 +0200 (IST) In-reply-to: (william.xue@gmail.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66381 Archived-At: > Date: Tue, 13 Feb 2007 14:11:29 +0800 > From: "William Xue" > Cc: emacs-devel@gnu.org > > I have found something in makefile: > ---8<--------------------------------------------->8--- > 315 LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ > 316 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \ > 317 -I../src > ---8<--------------------------------------------->8--- > when run configure.bat in nt folder, I have specified '--cflags -I./inc'. > After I removed the -I../nt/inc in the makefile in lib-src folder, the > build is OK. > > It seems that only one -I flag allowed in this situation. > I specified the include path because I put all the graphic's header > files(gif, bmp, jpg, tiff, etc) in there. > > I did not know many about the flags in MinGW and GCC. Is there something > wrong or it is the limitation of the compiler? As you have found out, the problem was an extra config.h in ../nt/inc. In general, it is advisable to put the header files for the graphics libraries in the same directory where the compiler header files are. > if removed the -I../nt/inc from makefile, > 'mingw32-make movemail' make the following errors: > ---8<--------------------------------------------->8--- > gcc -o oo-spd/i386/movemail.exe -mno-cygwin oo-spd/i386/movemail.o > oo-spd/i386/pop.o oo-spd/i386/ntlib.o oo-spd/i386/getopt.o oo-spd/i386/getopt1.o -lwsock32 -ladvapi32 oo-spd/i386/movemail.o(.text+0x86d):movemail.c: undefined reference to `pop_open' I think you need to remove all .o files, and then run configure,bat and try building again.