New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.


Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 07, 2010
Posts: 3
Stemcell is on a distinguished road

Stemcell is offline
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.
QUOTE Thanks

Member Since: Nov 07, 2010
Posts: 3
Stemcell is on a distinguished road

Stemcell is offline
I'm going to join another, more active forum.
QUOTE Thanks

Post Reply New Thread Subscribe

« Xcode debugging question | Patch for language on Autocad for mac... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
I cannot properly install gcc and gfortran gcordoba OS X - Development and Darwin 3 02-18-2010 04:28 PM
problem with using gcc hchung OS X - Development and Darwin 2 06-02-2009 09:31 AM
gcc compiling jdgti OS X - Development and Darwin 5 09-20-2006 04:08 AM
How to install GCC version 4.xx???? Philipina OS X - Development and Darwin 1 04-14-2006 10:25 AM
gcc compiler, no stdio.h found lzco OS X - Development and Darwin 6 10-21-2005 04:23 PM

All times are GMT -4. The time now is 01:04 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?