The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 crt1.o errors
Author: kumarangopi 
Date:   05-12-06 04:24

I am installing libgraph on my freebsd system.When i give make command ,the following error is coming

/usr/lib/crt1.o:undefined reference to main

how to do now?how to add -c switch to gcc in makefile?any other ideas?

regards
Gopi

Reply To This Message
 
 Re: crt1.o errors
Author: parv 
Date:   09-12-06 05:12

Seems like you are missing the link with libc; to link with that use "-lc".

- Parv

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org