当前位置: 技术问答>linux和unix
WAITING ON LINE!
来源: 互联网 发布时间:2015-09-22
本文导语: example: g++ -lqt hello.cpp -o hello When I compile c++ programming that is finished in qt enviroment,the compiler tell me that /usr/bin/ld: cannot find -lqt collect2: ld returned 1 exit status . I want to know why. Thanks. | 如果...
example:
g++ -lqt hello.cpp -o hello
When I compile c++ programming that is finished in qt enviroment,the compiler tell me that /usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status .
I want to know why.
Thanks.
g++ -lqt hello.cpp -o hello
When I compile c++ programming that is finished in qt enviroment,the compiler tell me that /usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status .
I want to know why.
Thanks.
|
如果你把库所在位置的完全路径都写上试试呢?-l/where/it/is/****.so
|
why not use qmake and make? It's the formal way to compile qt application.
|
-lqt
这个参数代表什么意思?
去掉这个参数直接编译运行可以出正确结果不?
这个参数代表什么意思?
去掉这个参数直接编译运行可以出正确结果不?