beginning C Programmer - Need Help Compiling Program

This is a discussion on beginning C Programmer - Need Help Compiling Program within the C Programming forums, part of the General Programming Boards category; I am new to programming in C and I am having an issue. I am running a macbook with tiger ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    2

    beginning C Programmer - Need Help Compiling Program

    I am new to programming in C and I am having an issue. I am running a macbook with tiger and I try to compile a simple program named sample.c with the following command:

    gcc sample.c

    When I do this I get the following error

    ld: can't locate file for: -lcrt1.o

    Can anyone please point me in the right direction? Thanks for any help

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Sounds like you have an incomplete install of gcc. See if you can get a full installation. I'm not very familiar with the Mac world to help you out with the exact details, but it's probably not too difficult.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    2
    Ok I will look into that right now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Compiling Library Into Program.
    By Shogun in forum Linux Programming
    Replies: 10
    Last Post: 11-30-2004, 12:29 PM
  3. Replies: 7
    Last Post: 12-14-2003, 12:00 PM
  4. Compiling a program in VC++ and run it in DOS
    By Willhunting in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-18-2003, 03:09 AM
  5. Beginning C programmer...
    By Edgar in forum C Programming
    Replies: 4
    Last Post: 09-24-2001, 12:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21