New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Newb Programming Question


Post Reply New Thread Subscribe

 
Thread Tools
OIzq

 
Member Since: May 11, 2011
Posts: 4
OIzq is on a distinguished road

OIzq is offline
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!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,757
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks
OIzq

 
Member Since: May 11, 2011
Posts: 4
OIzq is on a distinguished road

OIzq is offline
No but I will take a look at it. Thanks for pointing me in the right direction!
QUOTE Thanks
Lbatson21

 
Member Since: Aug 17, 2010
Posts: 247
Lbatson21 has a spectacular aura about
Mac Specs: 2011 Mac mini and 2010 13" MacBook Pro, iPhone 4 and iPad

Lbatson21 is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« How to transfer Mac O s X On To Another Mac | Sound Input »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Complete Newb Question OIzq OS X - Development and Darwin 3 05-14-2011 09:27 PM
Sorry! Total newb question: internet connect reminder sassula OS X - Operating System 8 07-22-2008 07:15 PM
newbie question about programming languages MacGal OS X - Development and Darwin 10 03-28-2008 08:52 PM
newb question: just switched from xp to osx Virusyn iPod Hardware and Accessories 2 10-13-2006 10:07 PM
newb question: address bar went missing Virusyn Switcher Hangout 7 10-13-2006 06:13 AM

All times are GMT -4. The time now is 12:22 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?