• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I add a new Executable in my XCode project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I add a new Executable in my XCode project?


  • Subject: How can I add a new Executable in my XCode project?
  • From: n179911 <email@hidden>
  • Date: Thu, 3 Sep 2009 22:15:54 -0700

Hi,

I add a .cpp file in my XCode project. And the xcode project compiles
fine afterward.

#include <iostream>
using namespace std;

int main(int argc, char **argv) {
    cout << "Starting main " << endl;
}

But how can I execute that main in my xcode project? I assume I need
to create a new custom executable. And I have read
http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/XcodeProjectManagement/080-Defining_Executable_Environments/executable_environments.html

What I don't know what to put is the path of the executable. What
should I put? I just create a .cpp file with a 'main'.

Thank you.
 _______________________________________________
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

  • Follow-Ups:
    • Re: How can I add a new Executable in my XCode project?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: clang vs -Wunreachable-code
  • Next by Date: clang vs -Wunreachable-code
  • Previous by thread: clang vs -Wunreachable-code
  • Next by thread: Re: How can I add a new Executable in my XCode project?
  • Index(es):
    • Date
    • Thread