When you run a program, the program starts with the main() function by definition. You need a main() somewhere in your project, and whatever file contains main() should be the one you compile to create your executable. You can just put main in another file (e.g. main.cpp) and that way keep your implementation stuff separate.
Oh, and when I start my computer, I use the power button, not a .o file :lol:
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Offline 1,580 posts
since May 2006