编译错误导致浪费10多分钟, 编译错误的提示:xxx does not name a type xxx
来源:互联网 发布:怎么切换mac系统 编辑:程序博客网 时间:2024/06/10 14:11
最近, 我在google protobuf 协议文件xxx.pb增加了结构体(类)请求字段, 生成xxx.h和xxx.cpp文件, 然后放到对应目录进行编译, 奇葩的是, 编译出错, 提示:... does not name a type ..., 实际就是在名空间中没有找到类。查了至少10多分钟才找到原因。
我当时非常纳闷, 命名空间中有类啊, 怎么就提示没有呢? 原来, 在工程目录下, xxx.h和xxx.cpp文件被到处拷贝, 我更新xxx.h和xxx.cpp的时候, 并没有更新到真正正确的目录, oh, my god.
唉, 坑踩多了, 就涨经验了。
0 0
- 编译错误导致浪费10多分钟, 编译错误的提示:xxx does not name a type xxx
- c++编译错误unknown type name xxx
- 编译错误unknown type name xxx
- ptrdiff_t does not name a type造成编译错误
- ndk编译错误:error: 'override' does not name a type
- const导致的编译错误, 浪费了10分钟
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type 编译错误一:XX does not name a type 编
- 引用类型错误导致编译错误------浪费5-10分钟
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 编译错误--------:XX does not name a type和field `XX' has incomplete type
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 前置声明与C++头文件互相包含导致的error: 'xxx' does not name a type问题
- gem5编译错误:'ptrdiff_t' does not name a type 和 build/ALPHA/python/swig/stats_wrap.o
- `QtValidLicenseForCoreModule' does not name a type 错误的解决
- 错误:'XXX/XXX' does not contain bitcode.
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- Caffe学习系列(7):solver及其配置
- 排序算法
- JSP个人信息管理demo(servlet+jquery)
- textarea内容不能靠左显示
- 2016秋招
- 编译错误导致浪费10多分钟, 编译错误的提示:xxx does not name a type xxx
- 加拿大留学热门专业解读之计算机专业
- 本地Eclipse中Tomcat运行测试环境代码
- 剑指offer(11)-包含min函数的栈
- HDU 5909 Tree Cutting (树形dp+FWT)
- java io -- InputStream
- ListView控件相关用法
- 【POJ 3321】【dfs序(讲解)+(树状数组或者线段树)】Apple Tree【给你一颗树,最初每个节点上都有一个苹果,有两种操作单点修改和查询子树的苹果个数】
- 我给程序员新手写简历的一些建议