Original Post
I use dev-c++ 4, and I keep getting multiple definition errors whenever I try to compile programs. I have a class called Powerball, and it is in a file called "powerball.cpp". I have the necessary
#ifndef _POWERBALL_CPP
#define _POWERBALL_CPP
#endif
but when powerball.cpp is added to my project I get
"multiple definition of Powerball
owerball(void)" errors for every function in the class. I #include "powerball.cpp" in main, and when I remove "powerball.cpp" from the project, it compiles fine. Does anyone know what the problem is?