Thread
:
compilation error : undefined reference to 'main'
View Single Post
manoj1987
Light Poster
18Sep2009,19:03
Hi !
I tried a different solution :
just use a Makefile.
You need to build them using:
gcc -c helloFunc.c -o helloFunc.o
gcc -c myHello.c -o myHello.o
gcc myHello.o helloFunc.o -o hello
Let me also try the solution you suggested . Thanks :-)