Hi,
I have problems compiling Étoilé SVN. That's a silly problem but I
don't know how to solve it (and I don't know why it does appears)
While building files for EtoileFoundation framework, I get this error
message:
ETCArray.c: In function ‘ETCArrayIndexOfObjectIdenticalTo’:
ETCArray.c:156: error: ‘for’ loop initial declaration used outside C99 mode
ETCArray.c: In function ‘ETCArrayRemoveAllObjects’:
ETCArray.c:170: error: ‘for’ loop initial declaration used outside C99 mode
The gcc command line is:
gcc ETCArray.c -c \
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG
-fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -march=i686 -pipe
-I/var/abs/local/etoile-svn/src/etoile-build/Etoile/Build
-I/var/abs/local/etoile-svn/src/etoile-build/Etoile/Frameworks/EtoileFoundation
-I/var/abs/local/etoile-svn/src/etoile-build/Etoile/Frameworks/EtoileFoundation/Headers
-I./../derived_src -I. -I/home/mildred/GNUstep/Library/Headers
-I/opt/GNUstep/Local/Library/Headers -I/opt/GNUstep/System/Library/Headers \
-o obj/ETCArray.o
I don't know why gcc complains, usually it does not. I'm using gcc 4.2.2, maybe
it does matter. I know that adding the flag -std=c99 would solve the problem
but I don't know how to add it.
I tried the command line:
make CFLAGS="$CFLAGS -std=c99"
but it doesn't work at all.
I also tried to add the line
CFLAGS += -std=c99
to etoile.make but it doesn't have any effect.
Have you any suggestions how to solve that ? Maybe modify a GNUmakefile
somewhere (I don't want to modify the system makefiles, that is outside
of the Étoilé tree. But there may be a way to add CFLAGS somewhere in
the Makefiles of the Étoilé tree ...)
Thanks.
Mildred
--
Mildred Ki'lya
E-Mail: [EMAIL PROTECTED]
Site: <http://mildred632.free.fr/>
XMPP: <[EMAIL PROTECTED]> (GoogleTalk, Jabber)
GPG: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss