J
Jim Strathmeyer
(if this is OT, please let me know where to post it)
Basically I'm trying to 'g++ -c a.cpp' which includes a.h. a.h includes
some things, including b.h, which includes c.h (each header defining
classes A, B, and C, respectively.) Now, C inherits B, but as you can see
by the string of events above, by the time it gets to 'class C : public B'
B hasn't been defined yet.
I also have the same where the same situation happens and class C
has a member of type B or A.
Is there any elegant solution to this?
Is there a precompile/linking/whatever tutorial anywhere?
Basically I'm trying to 'g++ -c a.cpp' which includes a.h. a.h includes
some things, including b.h, which includes c.h (each header defining
classes A, B, and C, respectively.) Now, C inherits B, but as you can see
by the string of events above, by the time it gets to 'class C : public B'
B hasn't been defined yet.
I also have the same where the same situation happens and class C
has a member of type B or A.
Is there any elegant solution to this?
Is there a precompile/linking/whatever tutorial anywhere?