错误:预期的非限定 ID befo 重新'{'令牌
error: expected unqualified-id befo re '{' token
我在下面的代码片段中得到了error: expected unqualified-id before '{' token
。有人能弄清楚出了什么问题吗?这是来自OpenCV2.1软件包的代码片段。
当我使用来自 stasm 包的 make 文件构建 stasm 包时,我得到了这个。
/* Runtime assertion macro */
#define CV_ASSERT( Condition )
{
if( !(Condition) )
CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" );
}
两者之间有一行额外的行:
if( !(Condition) )
CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" );
那不应该在那里。它应该是
if( !(Condition) )
CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" );
或
if( !(Condition) )
CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" );
相关文章:
- 在全局变量中保存类的实例以重新创建类(创建"backup")
- 在运行时处理类型擦除的数据-如何不重新发明轮子
- 使用指针重新分析实体
- 从类继承时,继承的类是否会通过父类重新定义继承的变量
- 对C宏的未定义引用,但在定义它时会出现重新定义错误
- 有没有一种方法可以通过"typedef"为重新定义的基本类型定义特征和强制转换运算符
- 类的C++属性似乎已重新初始化
- flutter:即使shouldRepaint()返回true,自定义画家也不会重新绘制
- 我可以重新分配/覆盖std::字符串吗
- 使用RAII在给定次数的迭代后重新分配资源
- QTcpSocket在不阻塞GUI的情况下重新连接到服务器
- 重新定位图像时如何前进到下一个内存块
- 绘制顺时针三角形,重新排序点
- C++17 - 使用自定义分配器的节点提取/重新插入 - 适用于 clang++/libc++,但不适用于 libstd
- C++重新引用向量中的值
- GLEW/GLUT:调用init并创建一个窗口后,取消初始化并重新初始化?
- 如何重新定义MPI_FLOAT,MPI_DOUBLE以 typedef 的方式
- 重新排列单线以形成闭合多边形?
- WINAPI 注册应用程序重新启动时不清除打开的套接字
- 错误:预期的非限定 ID befo 重新'{'令牌