Results 1 to 4 of 4
  1. #1

    Member Since
    May 11, 2011
    Newb Programming Question
    Im new to Programing, and even newer to Macs and X Code, and I just have a quick question. I know when I write code in Bloodshed Dev C++, when its time to compile, it actually creates a clickable .exe file on my computer to run the program that's been created.

    What is the equivalent to this on XCode? I expected a clickable file on the desktop on my Mac but it's not there. Or do I need to specifically configure XCode to create such a clickable file when my program is compiled? Bear in mind that the only programs I've written for either thus far is the Hello World, in case that makes a difference.

    Thanks in advanced!

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    2012 13" MBP (2.5 i5, 8GB)
    You don't create clickable executables - they have to be run from the command line (assuming you're making a command line application). Either run it from Xcode or use the terminal in /Applications/Utilities. Are you familiar with the command line interface?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3

    Member Since
    May 11, 2011
    No but I will take a look at it. Thanks for pointing me in the right direction!

  4. #4
    Registered User
    Member Since
    Aug 17, 2010
    2011 Mac mini and 2010 13" MacBook Pro, iPhone 4 and iPad
    When you start Xcode you have an option to choose a c++ project using the command line tool. From there it starts you out with a main.cpp file that you can rename and edit to fill in whatever code you want to run. the main.cpp file in there is actually a hello world example lol. Anyway, once you double click on the main.cpp and edit it you just need to save and there will be a button that says build and run that compiles and runs the program you just wrote. To view the program and interact (i.e. input info for user inputs) you will need to view the console, which is under menu option Run>Console, also command, shift R I think. This will pull up the window where Xcode runs the program and you will be able to watch it do whatever it does. I just installed Xcode this week myself and I'm sure there are some other more detailed directions but thats where I'm at so far. Hope this helps

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Newb Question: What are the must have...
    By Perseus MCMXI in forum Switcher Hangout
    Replies: 4
    Last Post: 05-20-2012, 01:39 AM
  2. Newb Question
    By Addz in forum Switcher Hangout
    Replies: 8
    Last Post: 03-31-2010, 02:20 AM
  3. Newb Question ??
    By zzMac in forum Switcher Hangout
    Replies: 5
    Last Post: 03-17-2007, 04:00 PM
  4. Newb here! Some question!
    By 2000blasterboy in forum Apple Notebooks
    Replies: 4
    Last Post: 03-22-2006, 08:00 AM
  5. another newb question
    By EYPUFF in forum Switcher Hangout
    Replies: 3
    Last Post: 10-28-2003, 09:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts