开发平台(Platform): (Ex: Win10, Linux, ...)
codeblocks + GNU GCC Compiler
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
GNU GCC Compiler
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
tc3 circle.cpp
tc3 graphics.h
tc3 point.h
问题(Question):
最近看到多年前的 tc3, 内部有 graphics.h
就用 codeblocks + GNU GCC Compiler 编译
先打开 tc3 中的 example 中的 circle.cpp
并将 tc3 中的 graphic.h 复制到 MinGW 的 include 资料夹下
编译 circle.cpp 时
会引用到 tc3 中的 point.h 档案
编译显示 point.h 中的 enum Boolean {false, true}; 出现错误
错误讯息为
||=== Build file: "no target" in "no project" (compiler: unknown) ===|
C:\tc3\EXAMPLES\point.h|8|error: expected identifier before 'false'|
C:\tc3\EXAMPLES\point.h|8|error: expected '}' before 'false'|
C:\tc3\EXAMPLES\point.h|8|error: expected unqualified-id before 'false'|
C:\tc3\EXAMPLES\point.h|8|error: expected declaration before '}' token|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
一直无法修正
有人知道原因吗?