From: Eli Zaretskii <eliz@gnu.org>
To: "William Xue" <william.xue@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: EXIT_SUCCESS and NO_RETURN in /lib-src
Date: Wed, 14 Feb 2007 16:53:49 +0200 [thread overview]
Message-ID: <u8xf06b9e.fsf@gnu.org> (raw)
In-Reply-To: <op.tnobhfo8hkv0w5@williamnb> (william.xue@gmail.com)
> Date: Tue, 13 Feb 2007 14:11:29 +0800
> From: "William Xue" <william.xue@gmail.com>
> 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.
prev parent reply other threads:[~2007-02-14 14:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-12 6:33 EXIT_SUCCESS and NO_RETURN in /lib-src William Xue
2007-02-12 20:46 ` Eli Zaretskii
2007-02-13 3:07 ` William Xue
2007-02-13 4:25 ` Eli Zaretskii
2007-02-13 6:11 ` William Xue
2007-02-13 9:09 ` Juanma Barranquero
2007-02-13 9:15 ` William Xue
2007-02-13 9:20 ` Juanma Barranquero
2007-02-14 2:22 ` William Xue
2007-02-14 2:34 ` Juanma Barranquero
2007-02-14 2:44 ` William Xue
2007-02-14 2:58 ` Juanma Barranquero
2007-02-15 1:52 ` William Xue
2007-02-14 15:13 ` Eli Zaretskii
2007-02-14 14:53 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u8xf06b9e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=william.xue@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.