Sunday, June 16, 2013

Framework for gcc on a mac

Slightly boring post, but since there's fuck all documentation about how this works, I thought i'd jot down a note to myself about it.
During some scons wrangling, I discovered that its necessary to give gcc the path to the Framework directory using -F. This irritatingly trivial deviation from the usual -I and -L include paths, needs to go in both the g++ compile (-c) and the ld link commands (g++ that makes an so from .o's).
Remember that - it goes in *both*.
e.g.
-F/System/Library/Frameworks

Yes this is boring, but took me far too long to figure this now-trivial thing out!