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 - Development and Darwin Discussion and questions about development for Mac OS X.

Darwin: launching a self compiled program.


Post Reply New Thread Subscribe

 
Thread Tools
cwhiii

 
Member Since: Sep 04, 2008
Location: The Far Side of the Moon
Posts: 4
cwhiii is on a distinguished road
Mac Specs: MacBook: 2.16 GHz, 1GB RAM, 120GB HD

cwhiii is offline
I am just starting to learn C. I have created a "Hello, World." program, and used GCC in Darwin to compile it. It does compile correctly, and I can launch/run it by double clicking on the icon on the Desktop.

My question is, how do I run it from Darwin?

I've tried just typing in the name, but get the error: "No such file or directory"
Do I have to specify the path even when I'm in the correct directory?

C.W.Holeman III
http://www.cwholemaniii.com
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
sounds like the directory it's in is not in the path. do ./programname

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
cwhiii

 
Member Since: Sep 04, 2008
Location: The Far Side of the Moon
Posts: 4
cwhiii is on a distinguished road
Mac Specs: MacBook: 2.16 GHz, 1GB RAM, 120GB HD

cwhiii is offline
Quote:
Originally Posted by Dysfunction View Post
sounds like the directory it's in is not in the path. do ./programname
Thanks.

C.W.Holeman III
http://www.cwholemaniii.com
QUOTE Thanks

Post Reply New Thread Subscribe


« iCal Calendars | Installing MediaWiki as a learning experience »
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
New to Apple. Looking for a calendar program J-Rod Switcher Hangout 7 09-02-2005 10:36 AM
Darwin Streaming Server FancyPants Web Design and Hosting 2 01-09-2004 11:35 AM
Darwin 7.0 source code posted Murlyn OS X - Development and Darwin 1 10-28-2003 12:26 PM
Darwin 6.7 and 6.8 source code posted Murlyn OS X - Development and Darwin 0 09-23-2003 01:07 PM
Apple Darwin OS 6.6 released Graphite OS X - Development and Darwin 0 05-14-2003 07:35 PM

All times are GMT -4. The time now is 08:15 AM.

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?