从C到C 的转换无法编译
conversion from C to C++ - cannot compile
嗨,我在http://pastebin.com/cjcd5apn上有一个代码。问题是在编译期间,我遇到了很多错误:
Error: Identifier "lastButton" is undefined in "ft800.cpp", Line: 406, Col: 6
Error: "this" may only be used inside a nonstatic member function in "ft800.cpp", Line: 740, Col: 6
Warning: Nonstandard qualified name in global scope declaration in "ft800.cpp", Line: 445, Col: 12
您知道为什么会发生吗?我省略了什么吗?
问题是在顶部定义。我找不到它,但是现在已经解决了。
应始终编写定义指令,以便在代码中无意中使用它。最好的方法是使用大写字母,因为它保留给预处理器语言。
错误:声明没有声明任何内容
相关文章:
- 我编写了代码将十进制分数转换为其二进制等效数.它编译得很好,但在执行时挂起
- 在编译时将常量字符* 转换为常量 char_type*
- 将编译时常量向量转换为堆分配版本
- 编译时间文本到数字转换 (atoi)
- 如何在编译时将齐次元组转换为数组?
- PX 转换例程编译问题
- 从DLL导出函数,LoadLibrary()需要用TEXT转换的字符串才能编译而不会出错
- 由于类型从 C 转换为 C++,无法编译错误 C2440
- 编译时出错 - 从 DWORD 到 LPCVOID 的转换
- 编译时将字符*转换为字节
- 在编译时将强类型枚举器转换为其基础类型?
- is_same和variadic模板编译时错误无效转换
- 谷歌测试编译错误 Os X:函数式转换从"int"到"internal::FloatingEq2Matcher"的模糊转换<float>
- 尝试转换 std::chrono::d uration 会导致"rep cannot be a duration"编译错误
- 为什么在使用转换构造函数编译代码时需要 const 复制构造函数?
- 为什么这种转换方法不编译?
- 将树转换为元组的编译时转换
- 将 lambda 函数转换为另一个编译单元中的普通函数会缩短编译时间吗?
- 如何将 32 位编译二进制转换为 64 位
- 根据数值模板参数有条件地编译转换运算符