MacArthur, Ian (SELEX GALILEO, UK) wrote:
>> I checked out latest 1.3 SVN and it built OK on my
>> intel mac running Tiger.
>>
>> Tried to build the same directory on my PPC mac running Tiger
>> (make distclean; make), but it failed to build Fl.o
>> with these errors:
>
> OK - that's odd; my Mac (at home) is an old PPC box running 10.4.11, and
> last night (UK time) just before heading to bed I did a checkout and
> rebuild and all went well.
> I even ran a handful of the test programs to make sure it was working
> OK, and they were fine.
>
> This was building at the command line - so *should* be the same as what
> Greg was doing (I don't think either of us are IDE fans...)
Might be because I have "gcc_select 3.3" configured on this machine
(for certain release builds I do).
To verify, I ran 'make' on an older fltk-1.3.x release (which had
some recent svn with Fl_cocoa.mm) and it built fine.
I just re-checked out a fresh 1.3 current just to be sure, same error.
So something seems to be up, though I don't know what it is.
I noticed last night the lines it's complaining about hadn't changed,
and offhand didn't /seem/ to be particularly dependent on other files
that might have changed.
However, the error seems to be happening as part of an #include from
Fl_Printer.H
(which is I think one of the new files), because the error says:
In file included from ../FL/Fl_Printer.H:6,
from Fl_cocoa.mm:2988,
from Fl.cxx:1516:
../FL/Fl_Pixmap.H: In constructor `Fl_Pixmap::Fl_Pixmap(char* const*)':
../FL/Fl_Pixmap.H:68: error: parse error before `;' token
..so I can only guess that somehow there's an #ifdef or some such
occurring that's leaving the compiler unsatisfied such that it errors
out when it hits the older files.
I just noticed if I change to "gcc_select 4.x" then the svn current
builds OK.
So it seems like it won't compile if you have "gcc_select 3.x"
but will compile OK if you have "gcc_select 4.x".
My guess is there must be some kind of #ifdef issue in one of the
new files that's causing the error to occur in the other unchanged
files.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev