Hi people. Anyone have a clue what the following compiler error means?
/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crt1.o: In function `_start':
/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
Hmm. Would it be advisable to create a makefile instead of compiling each one individually?
That actually doesn't have anything to do with this issue here. The idea of a makefile is that you can have the computer deal with handling the compiler, etc. So if you have many source files, or many build steps, or complex compiler or link flags, and so on, you would use some kind of build system (like makefiles) to reduce your manual work.
If you compile each one individually, you then have to link them altogether in the end right? So the question is if you are linking the object file that defines the main function.