G
Gaijinco
I'm having a weird error compiling a multiple file project:
I have three files:
tortuga.h where I have declared 5 global variables and prototypes for
some functions.
tortuga.cpp where I implement all of the functions of tortuga.h
main.cpp where I use the functions implemented in tortuga.cpp
I create the objetc file without problem. But when I try to compile
"main.cpp" it says:
"multiple declaration of..." for each one of the global variables.
What am I doing wrong?
Thanks.
I have three files:
tortuga.h where I have declared 5 global variables and prototypes for
some functions.
tortuga.cpp where I implement all of the functions of tortuga.h
main.cpp where I use the functions implemented in tortuga.cpp
I create the objetc file without problem. But when I try to compile
"main.cpp" it says:
"multiple declaration of..." for each one of the global variables.
What am I doing wrong?
Thanks.