|
From: Joe E. <jen...@fl...> - 2005-09-27 20:49:24
|
Kevin Walzer wrote: > I'm trying to build a "universal binary" of Tile on Mac OS X, 10.4, with > gcc 4. I've successfully compiled Tk, but during make, Tile returns > these errors: > > In file included from ./macosx/aquaTheme.c:35: > /Users/kevin/tk/macosx/tkMacOSXInt.h:154: error: syntax error before > 'int'In file included from ./macosx/aquaTheme.c:35: > /Users/kevin/tk/macosx/tkMacOSXInt.h:154: error: syntax error before 'int' > > [ ... gobs of errors elided ... ] macosx/aquaTheme.c currently includes the following headers: | #include <Carbon/Carbon.h> | #include <tk.h> | #include <tkInt.h> | #include <tkMacOSX.h> | #include <tkMacOSXInt.h> | #include "tkTheme.h" Now I'm pretty sure that's the Wrong Thing -- it was arrived at by trial and error, by adding, deleting, and reordering the #includes until the file finally compiled on the machine I was using at the time -- but I don't know what the Right Thing is. Any advice from AquaTk gurus? aquaTheme.c needs the Carbon API(s), plus a couple routines from the platform-specific public Tk API (TkMacOSXGetDrawablePort and TkMacOSXWinBounds). What headers should be included, and in which order? --Joe English jen...@fl... |