QT编译错误
来源:互联网 发布:win7装linux 编辑:程序博客网 时间:2024/06/07 04:05
错误提示:
main.cpp: In function ‘QWidget* create_first(QWidget*, const char*, uint)’:
main.cpp:5: error: expected type-specifier before ‘hello’main.cpp:5: error: cannot convert ‘int*’ to ‘QWidget*’ in return
main.cpp:5: error: expected ‘;’ before ‘hello'
main.cpp:5: error: ‘hello’ was not declared in this scope
make: *** [main.o] Error 1
在网上找原因,看到有一篇类似的文章说 ,需要修改setName("hello"),经过几番尝试,最后发现,是因为粗心,没有将QT界面的名字设置成和工程名一样。
0 0
- QT/E 编译错误
- qt编译错误汇总
- qt 编译错误
- QT 编译错误
- Qt编译错误
- qt编译错误
- QT编译错误
- QT编译错误
- QT编译错误
- qt编译错误
- Qt编译错误
- QT/E 编译错误 clock_gettime
- Qt on PlayBook编译错误
- QT tslib编译错误原因
- Qt编译常见的错误:
- qt编译错误的处理
- QT编译时 qmake错误
- Qt : 记录一个编译错误
- python 第十二周 元组、列表、字典、序列
- 第九周 项目5-方程也是类
- poj3017 dp+单调队列
- 黑马程序员_java基础之IO(异常,文件)
- Volley 实现原理解析(转)
- QT编译错误
- Gradle第二章:概述
- JavaScript文件处理:文件读取
- #include< >和#include""的区别
- 【嵌入式开发板】迅为iTOP-4412开发板板及资料介绍
- Shell中的运算符
- 从一个控制器返回后,控制器所属的tabbarController没选中(tabbarItem图标不亮)
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- iOS:分类、协议、代理