天嵌 ARM开发社区

 找回密码
 注册
查看: 2089|回复: 2

first 编译出错

[复制链接]
pangshiy 发表于 2009-8-27 14:00:17 | 显示全部楼层 |阅读模式
按照手册上来的,弄了几次了,都是相同的错误
[root@localhost first]# make
Makefile:131: warning: overriding commands for target `moc_first.cpp'
Makefile:128: warning: ignoring old commands for target `moc_first.cpp'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia/qt/include -I/opt/EmbedSky/Qte/x86-qtopia/qtopia/include -o
first.o first.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia/qt/include -I/opt/EmbedSky/Qte/x86-qtopia/qtopia/include -o
main.o main.cpp
main.cpp: In function `QWidget* create_first(QWidget*, const char*, unsigned
   int)':
main.cpp:5: parse error before `(' token
main.cpp:5: warning: unused parameter `QWidget*p'
main.cpp:5: warning: unused parameter `const char*n'
main.cpp:5: warning: unused parameter `uint f'
make: *** [main.o] Error 1
谢谢了
亚瑟王 发表于 2009-8-28 11:21:55 | 显示全部楼层
基本上可以肯定你没有完全按照手册做,至少是不够细心。
建议你对比一下Makefile文件的内容,有重复的,然后main.cpp的内容检查一下。
 楼主| pangshiy 发表于 2009-9-1 10:02:10 | 显示全部楼层
啊,谢谢了,终于弄好了,的确是自己有个地方没看清楚。
呵呵:P
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-29 16:08 , Processed in 1.046888 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表