Re: beginner question
Re: beginner question
- Subject: Re: beginner question
- From: Chris Espinosa <email@hidden>
- Date: Fri, 19 Jan 2007 08:42:53 -0800
On Jan 19, 2007, at 7:47 AM, Bill Lagarde wrote: I have an older version of Codewarrior and cannot import projects into Xcode.
That's understandable; Xcode's importer uses CodeWarrior's AppleScript support in order to extract information from its private binary file format, and older versions of CW don't support those AppleScript commands.
In these cases, especially for relatively simple projects, it's typical to create a new Xcode project of the same kind as the CodeWarrior project, then drag the files over from the CW project into the Xcode project. Then most of the work is getting build settings right. I have a project which is too long and Codewarrior can compile it but it won't run. I don't believe the code is wrong because what was added is nothing new, just more code.
I don't understand "project which is too long." Please elaborate. Is there a way to get simple projects which run in the console window to run in xcode?
Create a new "Tool" project (C or C++ depending on your source code). Drag the sources in from CodeWarrior. Don't drag the CodeWarrior link libraries in; the Xcode project is set up with the ones you need. It doesn't even recognize iostream. I know that for running a "real" Apple application you wouldn't use it since all text display is done in a window rather than the simple console window. If possible I'd like to first get it running in a console window before tackling the whole Apple look.
Note that older CodeWarrior projects were probably targeted to Mac OS 8 or 9, which didn't have a Terminal application, so they had to be run with CodeWarrior-specific console I/O libraries in CodeWarrior. With Xcode you can build an authentic Unix tool to be launched from the Unix shell even without Xcode. But you may have to migrate your code from CodeWarrior-specific headers, libraries, system calls, preprocessor directives, and other support it added to Mac OS 9 which is different in Mac OS X.
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden