Re: [ooc-compiler] Installation on Intel Mac
Brought to you by:
mva
|
From: Michael v. A. <mic...@gm...> - 2007-06-22 05:53:39
|
On 21/06/07, Christos Chryssochoidis <c.c...@gm...> wrote: > > > The error that I get when make fails is that in file > stage0/lib/obj/ADT/ArrayList.c, line 520, there is a nested C > function, and in order for that to compile successfully the > -fnested-functions switch of gcc must be used. Where in the makefile > should this gcc switch be put? Interesting. I did not know that there is a switch to tell gcc to accept nested functions. The best way to pass this flag on is (after a "make clean") to call env CFLAGS="-fnested-functions" ./configure ... This should set the corresponding variable in the top-level makefile for the initial build, as well as adding it to the oo2c config file for later calls to gcc by the installed compiler. -- mva |