Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Importing from CW



I'm not sure exactly what you're trying to do here, but:

* If you're still using PowerPlant (LException et al), then just use CodeWarrior. If you can strip out the PowerPlant code, then move to Project Builder. Last time we checked, PowerPlant was not compatible with Apple's standard C library.

* If you move to Project Builder, then don't use MSL. Use Apple's standard library in /usr/include instead. The two are not compatible, so you can't mix and match. MSL has quite a few issues, but if you're using stuff such as wchar, you'll have to review your code before moving to Apple's library.

* If you don't specify any header search paths, Project Builder will use the files in /usr/include by default. This also applies to C++ stuff such as STL. So just remove any references to MSL and you should be fine.

* If you decide to stay with PowerPlant, be aware that PP apps are not particularly good Mac OS X citizens. The last release we used here (8.2) still did not support Carbon events, for example, so PP apps would have abysmal performance on OS X. That said, the Metrowerks folks are working to address some of these issues.

* If you want a smooth transition from PowerPlant to more Mac OS X-savvy technologies, it might be a good idea to stay with CodeWarrior until the transition is complete. CodeWarrior handles both PP-based and nib-based interfaces, for example, but Project Builder only supports the latter. Once you have stripped out PP, moving to PB should be a snap.

Cheers,
Tobias Peciva
Pharos Systems

On Friday, June 27, 2003, at 03:02 AM, anand wrote:

Hi All,
Recently we decided to try out the feasiblity of converting our CodeWarrior project into a Project Builder project. I exported the CW carbon Mach-O project and imported it from PB. I am getting lots of errors related to PP specific macros and proper inclusion of files.

Can someone give information/clarifications about following...

1) Doesnt the imported project contains path for codwarrior files? I was getting errors for the PB not finding files in folders
<CW>/MSL/MSL_C++/MSL_Common/Include
<CW>/MSL/MSL_C/MSL_MacOS/Include etc.
I had to manually add them in the "Headers" section of "Search paths" in PB.{ I hope it is the proper place to do it}
2) It appears that PB will continue to use the standard c/c++ files (cmath, stdlib, ctype.h etc) by Metrowerks. Is it the correct way or should it now use files in /usr/include for std "c" and some files kept at some other location for c++.
If the recommended way is later then what path should I add standard c/c++ files and what can I do to enforce that these files are used.
3) I got number of errors similar to "looser throw specifier for 'virtual LException::~LException()' ". These were because of LException class providing a virtual destructor without "throw()" specification. Is there a way out of this error without meddling with PP code.
4) Some errors like "missing binary operator before '(' " . These were in files which used __option().

A lots of other errors which i can look into if i get passed these.

we are using OS 10.2.6, CW 8.3, PB 2.1

What other things need to be done to make it compile properly.
I shall be greatful for any help or pointers.
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Importing from CW (From: anand <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.