Results 1 to 2 of 2

Thread: gcc?

  1. #1

    Member Since
    Nov 07, 2010
    Hi, all
    I am currently attempting to successfully compile a C program for which I created external definitions of the functions and headerfiles for their prototypes. I was instructed on the steps by my graduate student instructor for a linux system. When all files necessary for complete compiling are present in the same folder, the terminal command 'make' does the trick! However in Terminal running within Snowleopard, 'gcc main.c' produces an 'undefined symbols' error. In an attempt to shed light on the point of the error, I transferred the functions of a lab I previously successfully created from the main.c file to their own .c and .h files. Upon commanding Terminal to compile, I received a familiar 'undefined symbols' error-in other words, the same basic error. Here's the error:

    Undefined symbols:
    "_roll", referenced from:
    _main in ccxz2NP4.o
    _main in ccxz2NP4.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    Please help! Thanks for reading.

  2. #2

    Member Since
    Nov 07, 2010
    I'm going to join another, more active forum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. using gcc
    By mayflyTR in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 08-28-2010, 09:06 PM
  2. Gcc 4.2
    By olifu02@gmail.c in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 01-13-2008, 11:26 PM
  3. How to upgrade gcc 3 to gcc 4 intel mac
    By jonnyd in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 12-29-2007, 04:34 PM
  4. Gcc
    By Destructive in forum OS X - Apps and Games
    Replies: 2
    Last Post: 12-17-2007, 11:40 PM
  5. GCC on 10.4.10
    By pokamonster in forum OS X - Operating System
    Replies: 1
    Last Post: 08-02-2007, 10: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