c++ template报错
来源:互联网 发布:hibernate sql注入 编辑:程序博客网 时间:2024/06/05 03:16
一、场景
template<int NT, int VT0>
之前使用的时候都是正常的,然后引入crow库后,
却报出error: expected ‘>’ before numeric constant
二、定位bug
g++ -E 查询模板:
template<int NT, int 0000000>
VT0编程了0000000
三、通过ctags定位VT0
发现VT0有两个文件被定义了:
1./usr/include/x86_64-linux-gnu/bits/termios.h
2./usr/include/asm-generic/termbits.h
均定义了
#define VT0 0000000
四、
因此当引入这些库的时候需要#undef VT0
阅读全文
0 0
- c++:template使用中的常见报错
- c++ template报错
- artTemplate报错:template not found
- C++template
- C template
- C++Template
- odoo报错 load could not load template Template: website.layout
- Template Code 无法使用 this.Host 报错
- template放置位置错误导致backbone报错
- ofbiz安装错误,页面报错:Template location is empty
- Django报错:django.template.exceptions.TemplateDoesNotExist: index.html
- list c++template
- Queue-C++template
- Stack-c++template
- C++Template之Priority_queue
- [C++] Template练习
- eclipse-c-template
- eclipse-c-template
- codeforces835 C
- 【hdu 4497】GCD and LCM 【算术基本定理】
- [bzoj2788][Poi2012]Festival floyd 差分约束系统 tarjan
- Android中touch事件机制学习总结
- 顶部标题栏在页面滚动后逐渐淡出
- c++ template报错
- 深入理解Java集合框架系列-第二章、Java集合中的hashCode方法
- centos下修改文件后如何保存退出
- React去掉双击文字的选中状态
- 监听服务器端口
- MapView跟Scrollview冲突
- 06-Ubuntu-Linux基础命令
- 欢迎使用CSDN-markdown编辑器
- 数据库SQL实战