QT 编译错误 multiple definition of
2013-03-29 22:09
627 查看
环境:QT4 VM fedora9.0
编译出错 如下:
尝试的解决方法:
在函数申明后 加 const 不行。
改变量名不行(因为有几个文件下的函数,变量名称相同) 还是不行。
解决方式:
有关文档说 清除所有 编译生成的文件; 包括 makefile, *list.h 等。
我删除了:编译生成的问件(注意:make clean 不能完全清楚 编译产生的文件)
然后重新执行: qmake -project ; (.pro文件加上 QT +=sql)
qmake;
make;
成功了!
编译出错 如下:
尝试的解决方法:
在函数申明后 加 const 不行。
改变量名不行(因为有几个文件下的函数,变量名称相同) 还是不行。
解决方式:
有关文档说 清除所有 编译生成的文件; 包括 makefile, *list.h 等。
我删除了:编译生成的问件(注意:make clean 不能完全清楚 编译产生的文件)
然后重新执行: qmake -project ; (.pro文件加上 QT +=sql)
qmake;
make;
成功了!
参考 文档:qt编译错误汇总 http://www.doc88.com/p-949593352203.html
相关文章推荐
- gcc交叉编译错误:multiple definition of
- C++ 解决 multiple definition of & previous definition here编译错误
- qt 编译时提示error: multiple definition of
- 编译报multiple definition of******错误
- qt 编译时提示error: multiple definition of
- gcc交叉编译错误:multiple definition of_时间流_百度空间
- qt用mingw编译时报错 multiple definition of
- 【转】解决多文件编译中连接错误 multiple definition of*****
- [转]gcc交叉编译错误之一: multiple definition of
- qt用mingw编译时报错 multiple definition of
- 编译时产生multiple definition of 错误的解决方法
- 解决C++编译出现的重定义问题:multiple definition of ’XXX‘错误
- gcc 交叉编译错误之一: multiple definition of
- gcc交叉编译错误: multiple definition of
- qt用mingw编译时报错 multiple definition of `main‘
- 如何解决linux下编译出现的multiple definition of错误
- C++的multiple definition of *** first defined here错误
- Qt编译错误之out of memory allocating 1073745919 bytes
- C++ "multiple definition of .. first defined here" 错误的修改
- 【C++错误处理】multiple definition of