Darwin: launching a self compiled program.

Joined
Sep 4, 2008
Messages
4
Reaction score
0
Points
1
Location
The Far Side of the Moon
Your Mac's Specs
MacBook: 2.16 GHz, 1GB RAM, 120GB HD
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?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
sounds like the directory it's in is not in the path. do ./programname
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top