As I said, this structure arises a multiple definition error of
Quote:
Function_in_myHeader (also of other identifiers declared in myHeader.h)
The problem is that I need to include myHeader.h in myHeader.cpp because
when I remove it the compiler throws errors of undeclared identifiers.
I tried also compile the program embedding the line within #ifndef
#define #endif but the result is the same as if I remove the line: not
declared identifiers/functions errors arise.
Are you compiling myHeader.cpp into myHeader.o then linking that with
main.cpp?
If you have implemented (i.e. provided a function body for)
function_in_myHeader IN the header itself then the function will be
defined in myHeader.o and you will get a multiple definition error
when you then link that with main.cpp
Any help? If not can you post the contents of myHeader.h and the
makefile/commands you use to compile it.
--rob