Reputation: 305
I have a Carbon-based project that compiles on XCode 3, but fails on XCode 4. It can't seem to find any Carbon or QT functions, even though I've included and #include
I get lots of errors like this: No member named 'InitCursor' in the global namespace
I tried re-adding in the Carbon.framework from the System/Library/Frameworks folder
Upvotes: 0
Views: 494
Reputation: 96333
The InitCursor
function, along with pretty much everything else in QuickDraw, was removed in Lion. You will need to remove your uses of all removed APIs, and probably replace most of them with more modern replacements.
This is a non-trivial task, but it is necessary if you want to build with modern tools and target current and future versions of Mac OS X.
It's been a long time coming, too; QuickDraw has been deprecated for years.
Much of Carbon is still supported, and you should find that you are not getting errors about those APIs.
You mention Qt; I've heard that there is a Cocoa version of Qt now.
Upvotes: 1