S
Stephen Corey
I've got 2 classes in 2 seperate header files, but within the same
namespace. If I use a line like:
// This code is inside Class2's header file
Class1 *newitem = new Class1(param1, param2);
I get "syntax error: identifier" and "undeclared identifier". Since
they're in the same namespace, and even in the same project, do I need
to do anything special, like put an "#include <theotherfile.h>" in each
header or anything???
namespace. If I use a line like:
// This code is inside Class2's header file
Class1 *newitem = new Class1(param1, param2);
I get "syntax error: identifier" and "undeclared identifier". Since
they're in the same namespace, and even in the same project, do I need
to do anything special, like put an "#include <theotherfile.h>" in each
header or anything???