Re: How to create a C++ project in Xcode
Re: How to create a C++ project in Xcode
- Subject: Re: How to create a C++ project in Xcode
- From: email@hidden
- Date: Thu, 12 Mar 2009 08:34:46 -0400
On Mar 12, 2009, at 6:45 AM, Justin Li wrote:
Hi all,
I use Mac os and Xcode now. I am using C++ not Objective-c.
Here is my step:
• New Project -> Command Line Utility -> C++ Tool -> Save as avs
• Delete the original main.c (because I already have a MS project
which include source files and header files)
• Ctrl+Click on Source in the Group & Files window. Add the exist
source files (.c files in my original MS project) into Source
directory.
• Next, if I want to add the header files, where should I put
these .h files in new Xcode project?
Besides, if the header files are added correctly, do I need to add
make file (for Linux compile) or solution file(for MS compile) to
this Xcode project? Or, just source files and header files are OK
for compiling?
Finally, what is the Targets item in left window of Xcode for?
Thanks,
Justin
--
Department of Electronic Engineering
City University of Hong Kong
Kowloon, Hong Kong
I've made a few videos to help my students get started with using
Xcode for command line C++ programs. Perhaps they will help you.
http://dl.getdropbox.com/u/616225/Xcode-preferences.mov
http://dl.getdropbox.com/u/616225/Xcode-demo.mov
http://dl.getdropbox.com/u/616225/Xcode-debug.mov
Dave
_______________________________________________
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