Original Post
I''m getting the "member function already defined or declared" error when I know it can''t be that. I mean, my header and cpp are fairly standard for class in question, i.e.
//header file
class A
{
public:
A( ...args... );
};
//cpp file
#include "header.h"
A::A( ...args... )
{
... init ...
}
so I assume it has to be something else confusing the compiler, but the question is what. I know something pretty bad has to be wrong because when I use the scope resolution operator (i.e. A:: ) in the cpp it doesn''t come up with the contents of A. I''d expect that sort of behavior if my class wasn''t defined properly, or if it couldn''t find the header file, but I''ve double checked those and they seem fine.
Has anyone experienced this sort of problem before or know what could be causing it? I do include a bunch of other classes in A''s header, but even when I stop including them the problem persists, so I''m out of ideas. Oh yeah, I also tried changing class and file names but that didn''t help.