I have three file impletment.cc , main.cc and student.h.

Here is my makefile

Code:
CC = g++

student_record: main.o impletment.o
	$(CC) -o main.o impletment.o 

main.o: main.cc student.h
	$(CC) -c main.cc

impletment.o: impletment.cc student.h
	$(CC) -c impletment.cc

clean:
	rm -f*.o core student_record
I am able to compile my files without error using Dev C++ which I don't have to write a makefile. However, when I compile those files in Unix using the makefile that I wrote I got the following errors

Code:
$ make
g++ -c main.cc
g++ -c impletment.cc
g++ -o main.o impletment.o
Undefined                       first referenced
 symbol                             in file
main                                /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/crt1.o
ld: fatal: Symbol referencing errors. No output written to main.o
collect2: ld returned 1 exit status
make: *** [student_record] Error 1
Could someone please help me out? I don't what this error is. Is it some thing wrong with my makefile. Thank you in advance.