Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Porting a CodeWarrior project into Project Builder...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting a CodeWarrior project into Project Builder...



I compile and run succesfully all of the PowerPlant stationary projects by doing this:

-In TArray.h put a #ifdef __MWERKS__ around the using declaration at the end of the file.

-In LStream.h put a #ifdef __MWERKS__ around the operators for short double

-There is a typo error in one of the GA classes, I can't remember where but it's easy to fix if you read the code.

-I use these #defines in PP_Macros.h when I'm compiling with PB:

#define PP_Target_Carbon 1
#define PP_Target_Classic 0
#define PP_Uses_PowerPlant_Namespace 1
#define PP_Suppress_Notes_21 1
#define PP_Suppress_Notes_211 1
#define PP_Supports_Function_Identifier 1

#ifndef NDEBUG
#define Debug_Throw 1
#define Debug_Signal 1
#endif

#define __dest_os __mac_os
#include <Carbon/Carbon.h>

#define PP_Using_Namespace_Std using namespace std;
#define PP_STD std
#define PP_CSTD std

-In the Application Settings (Expert), set the value of the key CSResourcesFileMapped to NO or else TextTraits resource won't work when you execute the application.

That's it!

Sandy.


References: 
 >Porting a CodeWarrior project into Project Builder... (From: "Thomas Lau" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.