• 4147阅读
  • 3回复

[提问]Makefile.Debug: warning 求解 [复制链接]

上一主题 下一主题
 

只看楼主 倒序阅读 楼主  发表于: 2011-10-08
我今天跑个修改了程序,结果跑的时候,报错如下:
D:/8forhome/Makefile.Debug:138: warning: overriding commands for target `debug/moc_widget.cpp'
D:/8forhome/Makefile.Debug:122: warning: ignoring old commands for target `debug/moc_widget.cpp'
:-1: error: collect2: ld returned 1 exit status
网上搜不到答案。。各位大侠,为什么会报这种错误?好奇怪!

只看该作者 1楼 发表于: 2011-10-08
我试过把debug里面的文件统统删掉,makefile and makefile.debug也删掉!rebuilt project还是不行!!!
离线roywillow

只看该作者 2楼 发表于: 2011-10-08
手动run qmake试试?
专业维修核潜艇,回收二手航母、二手航天飞机,大修核反应堆,拆洗导弹发动机更换机油,无人侦察机手动挡改自动,航天飞机保养换三滤,飞碟外太空年检 ,各型号导弹加装迎宾踏板,高空作业擦洗卫星表面除尘、打蜡及抛光,东风全系列巡航导弹。并提供原子对撞机。量大从优,有正规发票。

只看该作者 3楼 发表于: 2011-10-09
回 2楼(roywillow) 的帖子
解决了!If this does not solve the problem, then it is likely you have the mainwindow.h file listed more than once in your HEADERS variable in the .pro file。那个moc_widget.cpp'跑了两次!!哈哈!
谢谢!
快速回复
限100 字节
 
上一个 下一个