K
knguyen
Hello,
I was trying to compile the source code from "Design Patterns:
Elements of Reusable Object-Oriented Software", which can be obtained
from here ftp://st.cs.uiuc.edu/pub/patterns/dpcat/DPCPP.zip
The compiler gaves me an error at line 13 in Foundation.H - "typedef
int bool;" . In this case, I was trying to compile maze.c in folder C+
+
Foundation.H:13: error: redeclaration of C++ built-in type `bool'
Would anyone please explain this error for me? It also seems strange
to me about the line "typedef int bool;" as well, what is it trying to
accomplish?
Many thanks
I was trying to compile the source code from "Design Patterns:
Elements of Reusable Object-Oriented Software", which can be obtained
from here ftp://st.cs.uiuc.edu/pub/patterns/dpcat/DPCPP.zip
The compiler gaves me an error at line 13 in Foundation.H - "typedef
int bool;" . In this case, I was trying to compile maze.c in folder C+
+
Foundation.H:13: error: redeclaration of C++ built-in type `bool'
Would anyone please explain this error for me? It also seems strange
to me about the line "typedef int bool;" as well, what is it trying to
accomplish?
Many thanks