LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1483|回复: 1

QT4编译错误:/usr/bin/ld: cannot find -lQtGui_debug

[复制链接]
发表于 2006-9-25 09:30:00 | 显示全部楼层 |阅读模式
写了一个巨简单的程序,然后用qmake生一个project ,在make的时候提示下面的错误:

g++ -c -pipe -g -Wall -W -D_REENTRANT  -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
g++  -o helloworld main.o    -L/usr/lib -lQtGui_debug -lQtCore_debug -lpthread
/usr/bin/ld: cannot find -lQtGui_debug
collect2: ld returned 1 exit status
make: *** [helloworld] Error 1

有关QT4编程的包全都装了,是什么问题还是没有搞明白,请各位达人指点.
发表于 2006-9-27 06:56:34 | 显示全部楼层
QtGui_debug应该在/usr/local/lib/Trolltech/***之类的目录下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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