Openbook

Archive for the ‘Tech FAQs’ Category

compilation error : undefined reference to ‘main’

Posted by: manoj1987 on: September 18, 2009

I have been learning C back from basics. Recently i tried out a simple program myHello.c , which contained the following code :
1. //myHello.c
2. #include”hello.h”
3. int main(void)
4. {
5. hello(“WORLD”);
6. return 0;
7. }
next, i created hello.h that contained the following code :
1. //hello.h
2. void hello(const char* name);
Finally i created helloFunc.c that contained the declaration [...]


Member

Thank me

Rate

NewsGator

Subscribe in NewsGator Online

Popular Downloads of this month

get your ubuntu9.10 here

get your ubuntu9.10 here