Thanks and sorry see now I forgot to tell classA references classB as well and thus give the chicken&egg problem. So one class needs to be defined before the other and as said 2.96 been less strict conforming compiled the code. Chicken&eggs still exists even with stricter compiler/parsers I assume, how do one work around such then?
Did try to work a bit on using include files instead as I read a bit here and on gcc.gnu.org, only...
User Profile
Collapse
-
C++ brushing-up..., class forward declarations Q?
Hi Bytes Community,
I've been away from C++ programming for some years, and now find me self in need to recompile old code that compiles under g++ 2.96, but not under g++ 3.4.3. I notice that g++ 3.4 changed the parser to be more conforming and thus I now see compile errors like tried illustrated below. I've been googlling around, but so far haven't understood the issue at hand, hoping for hints from someone here.
Got...
No activity results to display
Show More
Leave a comment: