Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Code warrior for Mac > Help needed swi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2146 of 2225
Post > Topic >>

Help needed switching from CW 9 to XCode

by "RogueWarrior" <info@[EMAIL PROTECTED] > Jul 1, 2006 at 03:29 PM

I'd appreciate a little remedial help on this.  I've been trying to
prep a Codewarrior 9 project for conversion to XCode and I've run into
all manner of nasty compile errors.  Stuff that doesn't make any sense.
 Perhaps I'm reading too much into the published preparation
procedures.

The Apple Developer procedures tell you to:
"Remove any MSL libraries (such as MSL_All_CarbonD.Lib) from the
Libraries folder in the Files tab of your project.
Remove any access paths to MSL libraries from the Access Paths pane of
the Target Settings window for the target.
Add paths to the Access Paths pane for {OS X Volume}usr/include and {OS
X Volume}usr/lib.
Add the file /usr/lib/libSystem.dylib to your project. This is a
symlink that will resolve to the appropriate version of the system
library.
You may need to add the file crt1.o (located in /usr/lib) to the
project and make it the first file in the Link Order settings tab."

and then

"Make your own prefix file and precompile it. As mentioned in a
previous section, some projects can use just the statement #include
<Carbon/Carbon.h> in your prefix file. Of course you may need to
construct a more complex prefix file.
In the C/C++ Language pane of the Target Settings window, enter the
name of your file in the Prefix File text field.

Or you can modify the source for the CodeWarrior precompiled header so
that it precompiles against the headers in /usr/lib, rather than the
MSL headers, then re-precompile it."

Here's my interpretation:
I take all of this to mean that there are absolutely no access paths
with "MSL" in them.  When I do this I get the following nasty errors.

"Error   : the file 'mw_stdarg.h' cannot be opened
(included from:
 CoreFoundation/CoreFoundation.h:12
 CarbonCore/CarbonCore.h:20
 CoreServices/CoreServices.h:21
 Carbon/Carbon.h:20
 QuickTime/QuickTime.h:20
 Movies.h:1
 PluginGlueMac-MachO.c:18)
stdarg.h line 6   #include "mw_stdarg.h"

Error   : undefined identifier 'LangCode'
(included from:
 CoreFoundation/CFString.h:13
 CoreFoundation/CFPropertyList.h:10
 CoreFoundation/CoreFoundation.h:46
 CarbonCore/CarbonCore.h:20
 CoreServices/CoreServices.h:21
 Carbon/Carbon.h:20
 QuickTime/QuickTime.h:20
 Movies.h:1
 PluginGlueMac-MachO.c:18)
CFLocale.h line 75
ocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator,
LangCode lcode, RegionCode rcode) AVAILABLE_MAC_OS_X_VERSION_10
"
Adding in an access path to "MacOS X Sup****t" fixes that but I then get
all sorts of errors such as "undefined identifier 'NULL'"  Wha huh???

Adding in an access path to FlatCarbon appears to solve those but then
I get all sorts of wonky errors such as:
Error   : the file 'MacTypes.h' cannot be opened
(included from:
 CoreFoundation/CoreFoundation.h:38
 CarbonCore/CarbonCore.h:20
 CoreServices/CoreServices.h:21
 Carbon/Carbon.h:20
 (C-C++ Preprocessor Panel):1
 PluginGlueMac-MachO.c:1)
CFBase.h line 34    #include <MacTypes.h>

Error   : undefined identifier 'LangCode'
(included from:
 CoreFoundation/CFString.h:13
 CoreFoundation/CFPropertyList.h:10
 CoreFoundation/CoreFoundation.h:46
 CarbonCore/CarbonCore.h:20
 CoreServices/CoreServices.h:21
 Carbon/Carbon.h:20
 (C-C++ Preprocessor Panel):1
 PluginGlueMac-MachO.c:1)
CFLocale.h line 75
ocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator,
LangCode lcode, RegionCode rcode) AVAILABLE_MAC_OS_X_VERSION_10

Error   : identifier 'LangCode' redeclared
was declared as: 'int'
now declared as: 'short'
(included from:
 CarbonCore/CarbonCore.h:29
 CoreServices/CoreServices.h:21
 Carbon/Carbon.h:20
 (C-C++ Preprocessor Panel):1
 PluginGlueMac-MachO.c:1)
MacTypes.h line 271   typedef SInt16                          LangCode;


Now I've tried this on a Codewarrior 9 Mach-O template project and I
get these errors.  What on earth am I doing wrong.
 




 2 Posts in Topic:
Help needed switching from CW 9 to XCode
"RogueWarrior"   2006-07-01 15:29:38 
Re: Help needed switching from CW 9 to XCode
"RogueWarrior"   2006-07-01 16:58:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 0:29:30 CDT 2008.