Results 1 to 3 of 3
  1. #1
    Simplest Instructions for Compiling
    MichiganDavid's Avatar
    Member Since
    Jan 21, 2009
    Location
    Midland, Michigan
    Posts
    9
    Specs:
    MB Pro, 17", 2.5 GHz Intel
    Question Simplest Instructions for Compiling
    Hi. I am looking for the simplest instructions to compile an executable either using Xcode or from the terminal. I downloaded a sample C program and I want to compile and test it. I don't know where to put the header file that it needs (what directory to put it in) or how to tell gcc where to look (from the Terminal). If I could figure out how to compile in Xcode, that would be cool, because I assume I could get away from typing long path names and stuff.

    I imagine this question has been answered in another thread, but I couldn't find it. I will be happy if you can direct me to such a thread, or post the answer here.

    Thanks.

  2. #2
    Simplest Instructions for Compiling

    Member Since
    Jan 06, 2008
    Posts
    9
    Easiest way in XCode would be to create a new C application, then import all your files into your new project. As far as the proper location of the header files and what not, just have a look at includes at the top of the .c files, but usually they'll be in the same directory as your main.c and all your other files (especially for a small/simple application)

    If you'd rather use g++ instead and plan to modify that application, you might want to look into makefiles

  3. #3
    Simplest Instructions for Compiling
    MichiganDavid's Avatar
    Member Since
    Jan 21, 2009
    Location
    Midland, Michigan
    Posts
    9
    Specs:
    MB Pro, 17", 2.5 GHz Intel
    Thanks, I'm getting there
    Quote Originally Posted by Alexstre View Post
    Easiest way in XCode would be to create a new C application, then import all your files into your new project. As far as the proper location of the header files and what not, just have a look at includes at the top of the .c files, but usually they'll be in the same directory as your main.c and all your other files (especially for a small/simple application)

    If you'd rather use g++ instead and plan to modify that application, you might want to look into makefiles
    Thanks for your advice. I have had some success, but I'm having a different problem that I will describe in a new thread.

    David

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simplest HD Video Editing Program
    By Mr. D in forum Movies and Video
    Replies: 2
    Last Post: 11-16-2014, 08:58 AM
  2. the simplest video editing software?
    By RangerJet in forum Movies and Video
    Replies: 4
    Last Post: 10-04-2013, 11:37 AM
  3. Simplest way take a movie and send via e mail
    By berrill in forum Movies and Video
    Replies: 6
    Last Post: 01-02-2011, 08:46 AM
  4. Replies: 1
    Last Post: 12-28-2010, 01:15 PM
  5. Simplest way to put iPhone movies on YouTube?
    By HiFreq47 in forum Movies and Video
    Replies: 6
    Last Post: 10-29-2010, 12:27 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
  •