[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EXIT_SUCCESS and NO_RETURN in /lib-src
From: |
Eli Zaretskii |
Subject: |
Re: EXIT_SUCCESS and NO_RETURN in /lib-src |
Date: |
Wed, 14 Feb 2007 16:53:49 +0200 |
> Date: Tue, 13 Feb 2007 14:11:29 +0800
> From: "William Xue" <address@hidden>
> Cc: address@hidden
>
> 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.
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, (continued)
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, William Xue, 2007/02/13
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, Juanma Barranquero, 2007/02/13
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, William Xue, 2007/02/13
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, Juanma Barranquero, 2007/02/13
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, William Xue, 2007/02/14
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src, Eli Zaretskii, 2007/02/14
- Re: EXIT_SUCCESS and NO_RETURN in /lib-src,
Eli Zaretskii <=