On Apr 10, 2006, at 1:20 PM, Richard wrote:
I also get a second error when I compile.
Compilation of "APP NAME" failed.
Linker failed with error #0. This project contains a Declare
statement which references the PEF library "Carbon Lib". In a Mach-
O application, you must use "Carbon" instead.
Correct. Mach-O applications can't declare against CarbonLib.
I do not receive this error in 2006 r1 and all my declares seem to
be formatted correctly.
In 5.5, REALbasic was providing a transition by alerting you that you
were declaring against CarbonLib, and then translating the declare
for you automatically. This transition was meant to be a temporary
"solution" because there are better, more cross-platform ways to
doing declare validation.
In the transition to REALbasic 2005, the alert never made it into the
IDE, but the translation kept working.
In 2006r2, the Mach-O linker got heavily refactored, and the
transitional code was removed. This meant that the OS would once
again provide it's useful messages in the Console saying that
CarbonLib couldn't be loaded. We noticed that this was a big problem,
and put in the alert for common library names, such as CarbonLib,
OpenGLLib, etc.
So, the alert is correct -- Carbon applications can't declare against
CarbonLib, and they need to be updated to declare against "Carbon"
instead.
HTH,
Jon
P.S. Sorry for the long explanation, but I felt it might help to know
what it appeared to work before, but in reality it working was
actually a bug.
--
Jonathan Johnson
REAL Software, inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>