We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,985 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Never got this error before, please tell me what does it mean

Hi everybody,

When I tryed to compile a C program, compiler gave me error, that I haven't see before. Please tell me what does it mean? and what are the possible reasons, this error occure.

blade71(20)% gcc lineholder.c -o lineholder
Undefined                       first referenced
 symbol                             in file
main                                /tools/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to lineholder
collect2: ld returned 1 exit status
blade71(21)% 
2
Contributors
2
Replies
1 Hour
Discussion Span
1 Year Ago
Last Updated
3
Views
shean1488
Junior Poster in Training
68 posts since Feb 2012
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0

your program might have used a function or a variable which is not defined in any of the object files or libraries supplied to the linker.
this might have been caused by a missing library or using an incorrect name

zeroliken
Nearly a Posting Virtuoso
1,346 posts since Nov 2011
Reputation Points: 214
Solved Threads: 205
Skill Endorsements: 14

Thank you

shean1488
Junior Poster in Training
68 posts since Feb 2012
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0631 seconds using 2.71MB