Thanks Terry for that useful information

I just had a look at a my project's target conditional constants and
see it uses TargetWin32 and TargetMacOS.

I want to support Mac OS 10.1-10.4, PowerPC or Intel platforms as required.

Looking at the Macintosh build settings, I would consider building
under any of Mac OS X Universal Binary, Mac OS X PowerPC and Mac OS X
Intel settings.

I see that TargetMacOS appears as a constant under all three platforms
in Build Settings and as I think the conditional code will apply to
the Mac OS 10.1-10.4, PowerPC or Intel platforms (without significant
testing).  So I think this TargetMacOS constant is the right one to
use to target the specified platforms.  Does this sound OK?

Thanks in advance

Paul

On 12/18/06, Terry Ford <[EMAIL PROTECTED]> wrote:

On Dec 17, 2006, at 3:22 PM, Paul Rehill wrote:

> Hi all
>
> The RB compiler doesn't seem to like declares with CarbonLib appearing
> in code for UB builds.  I was hoping it would just ignore such code if
> placed within TargetCarbon conditional if statements but it seems I
> have to get rid of all CarbonLib references before I can attempt to
> compile the project.

That's because UB builds are based on Mach-O, not Carbon. The declare
call is different.

Better still is to create a constant that will enter the correct
library call based on the platorm.

Remember that UB's are built using the Mach-O framework and that
"Carbon Lib" is a PEF call in a Declare.
_______________________________________________
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>

Reply via email to