Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / April 2005



Tip: Looking for answers? Try searching our database.

rez compiler and MachO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hp - 29 Apr 2005 03:34 GMT
Dang. It would appear that the rez compiler knows nothing about
__MACH__

I have a shared resource that I would like to use with both a PEF and a
MachO target, but it seems that I cannot share a common prefix file
btween the C compiler and the rez compiler.  Is there any way to
differentiate between these targets in the rez compiler? Does it assert
some other symbol?

[10.3.8, CW9.4]

TIA,  harry
David Phillip Oster - 29 Apr 2005 03:56 GMT
> Dang. It would appear that the rez compiler knows nothing about
> __MACH__
[quoted text clipped - 4 lines]
> differentiate between these targets in the rez compiler? Does it assert
> some other symbol?

Each target has its own rez preferences. Just use that to assign each
target its own rez prefix header file and you can easily do what you
want.

Signature

David Phillip Oster

hp - 29 Apr 2005 05:07 GMT
> Each target has its own rez preferences. Just use that to assign each

> target its own rez prefix header file and you can easily do what you
> want.

Yeah I considered that, and indeed did just that to test. But one of
the hopes of going to CW9.4 was to help me eliminate excessive prefix
files; and the new compiler prefix panel does that. Dont quite
understand why the same technique (ie, a text panel) was not then
applied to the rez compiler, and to the plist compiler.

So an option is to create yet another special prefix file, or I might
also consider creating a new version of the resource file that seems to
have this MachO sensitivity.

Either way its a new addition to the fileset. Sigh...

-harry
Josef W. Wankerl - 29 Apr 2005 15:11 GMT
> I have a shared resource that I would like to use with both a PEF and a
> MachO target, but it seems that I cannot share a common prefix file
> btween the C compiler and the rez compiler.  Is there any way to
> differentiate between these targets in the rez compiler?

I believe the rez compiler knows how to do __ide_target("name"), so you
can say

#if __ide_target("machname")
 /* mach stuff */
#else
 /* pef stuff */
#endif
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.