Compile Error on submission

I have written a C++ code that compiles fine on my local machine. But when I submit to codechef as solution I am getting the following error

/usr/lib/gcc/i486-linux-gnu/4.3.2/…/…/…/…/lib/crt1.o: In function _start': /home/aurel32/tmp/glibc/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference tomain’ collect2: ld returned 1 exit status

My code contains main function. Please help

Did you named your file main ? Or is your main defined as

int main() { // all in lowercase
    ...
}

?

edit:

There are few things you can try. Probably the best is to compile your code on some linux machine from command line. Easier (if you have no acces to some linux machine) is to use ideone.com, but if there is problem with file name, than you won’t find the problem here.

where do you see this error ? o_O