I wrote a multifile program and corrected all the compiling errors, now i get an error while linking:
g++ -o Sniffer_v1 Sniffer.cpp SnifferMain.cpp TextUI.cpp
/usr/lib/gcc/i586-suse-linux/4.5/../../../crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
Just ask if the other files (classes) are also needed to find the error.
I already used google but I couldn't solve the problem, can somebody help me?
Maybe I'm just using the wrong g++ command to compile and link, I don't know?
Don't worry to much about the sense of the program. ;)