Multiple function definition

Goodmorning everyone,

I'm facing a linker error that i can't solve.

I create a program that after the compiling gives to me an error from linker, apparently there are multiple definition of lots function i use.

The structure of my program is like this one:

 
class 1 { do things }


1
2
#include "class 1"
class 2 { do things }


1
2
#include "class 2"
class 3 { do things }


1
2
#include "class 3"
int main() { do things }


So every class include the last one that includes another class itselfs, ecc.
In my opinion this is what generate the error, but i don't know how to solve that, what do you think about this?
Last edited on
must give us sufficient C++ code and its build messages
Registered users can post here. Sign in or register to post.