From: Sideswipe on 10 Oct 2006 19:22 What I did, that finally got it to compile, was forward declare SomeOtherClass class SomeOtherClass; ANd then, in the .cpp file, #include "SomeOtherClass.h" and the problem was gone. I spent all day trying to iron that out! Christian -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
From: Alberto Ganesh Barbati on 11 Oct 2006 10:02 Sideswipe ha scritto: > What I did, that finally got it to compile, was forward declare > SomeOtherClass > > class SomeOtherClass; > > ANd then, in the .cpp file, #include "SomeOtherClass.h" and the problem > was gone. I spent all day trying to iron that out! > The whole day? Well... at least two people (Carlos Moreno and myself) have told you that it was the first possible cause of your problems! Why did you ask if you don't care about the answers? If the answer weren't clear enough you should have asked for a clarification. Ganesh -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
First
|
Prev
|
Pages: 1 2 3 Prev: fgets() vs std::getline() performance Next: error: invalid use of nonstatic data member |