Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers to determine the size of the map.
Now all this is going alright, but I am getting a problem involving crt1.o, which i used to start up my computer. I am getting the compiler error:
undefined reference to 'main' I understand that this is a problem relating to the fact that my .cpp file doesn't have a main function.
I could just put one in, but the problem is that this is an implementation file for a header, not a main file. This file isn't supposed to have a main function in it. How should I fix this?
/*This is on my debian 'etch' system, I am using gedit to edit the files and g++ to compile them. my gcc is version 4.1.2. */
[EDIT] I suppose I could just keep writing it, because if that is the only error I get it'll still compile in visual c++ for windoze, and that's what my instructor will be using... [/EDIT]