标题:很初级的一个问题(Qt4)
作者:zxy1204
日期:2006-05-16 02:08
内容:
C:\Qt\4.1.2\examples\tutorial\t1>make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.1.2/examples/tutorial/t1'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -Wl,-subsystem,windows -o "debug\t1.exe" tmp\obj\debug_shared\m
ain.o-L"C:\Qt\4.1.2\lib" -L"C:\Qt\4.1.2\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQ
tCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lQtGuid4
collect2: ld returned 1 exit status
mingw32-make[1]: *** Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.1.2/examples/tutorial/t1'
mingw32-make: *** Error 2
我运行的是Qt4里的例子程序。可是qmake -project 和 qmake都还可以。就是make和make debug的时候会出这样的问题。那个Build Debug Libraries 也运行过了。就是不知道毛病在哪里。请帮忙指点一下。
#1 [XChinux 05-16 09:01]
你是不是在Qt Command Prompt里面进行上述编译的?
最好在Qt Command Prompt里进行编译。否则你就得把环境变量都设置正确了才行。
#2 [zxy1204 05-16 19:13]
谢谢阿.是这样的.应该在人家的那里编才好.
#3 [legend_jacky 05-23 22:46]
是啊,已经设定好了路径,所以方便