Results 1 to 3 of 3
  1. #1


    Member Since
    Sep 04, 2008
    Location
    The Far Side of the Moon
    Posts
    4
    Specs:
    MacBook: 2.16 GHz, 1GB RAM, 120GB HD
    Darwin: launching a self compiled program.
    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?

  2. #2

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    sounds like the directory it's in is not in the path. do ./programname
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3


    Member Since
    Sep 04, 2008
    Location
    The Far Side of the Moon
    Posts
    4
    Specs:
    MacBook: 2.16 GHz, 1GB RAM, 120GB HD
    Quote Originally Posted by Dysfunction View Post
    sounds like the directory it's in is not in the path. do ./programname
    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. cant execute compiled file with g++
    By loux in forum Running Windows (or anything else) on your Mac
    Replies: 9
    Last Post: 02-03-2012, 02:52 PM
  2. Would a program design to run on Mac OS run on Darwin?
    By trinigirl in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 03-17-2009, 07:26 PM
  3. New Program for Darwin: LoansMgr
    By mac57 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 01-04-2007, 12:39 AM
  4. New Program for Darwin: walk
    By mac57 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 01-03-2007, 05:39 PM
  5. Stop Program From Launching On Start Up
    By youthpastor in forum OS X - Apps and Games
    Replies: 3
    Last Post: 09-15-2006, 08:53 AM

Posting Permissions

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