I have a program with these four files as part of it.
// More methods and variables
class circ:public point
// Methods and Variables
// More variables
I get the errors
- c:\users\john\documents\visual studio 2005\projects\ogl3\ogl3\point.h(19) : error C2061: syntax error : identifier 'circ'
- c:\users\john\documents\visual studio 2005\projects\ogl3\ogl3\circ.h(10) : error C2504: 'point' : base class undefined
as well as some other errors similar to this. I think it probably has something to do with the fact that both the circ and point classes need to include each other, but unfortunately I don't know how to fix this problem.
Exact instructions on how to resolve this problem are the most important thing here,
but I also think the problem comes because I don't really have a good idea of what exactly including files does and how exactly all the files are parsed. I just know that if a file needs to use a certain class or method, you have to include its header file, but debugging problems with it is really difficult for me, so some explanations as to what the linker and compiler are actually doing would be nice.