我有一个外部的链接库 oal.lib现在想把它添加到我的工程中来。
已经将oal.lib拷贝到当前文件夹
在.pro中使用LIBS += -loal。编译程序时报错f:/qt/2010.05/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -loal
添加完整的路径名LIBS += -LD:\Qt\isLibrary -loal
又报错D:\Qt\isLibrary-build-desktop/../isLibrary/main.cpp:21: undefined reference to `OaParseLabelFile(char*, char*, unsigned short, unsigned short)
OaParseLabelFile(char*, char*, unsigned short, unsigned short)这个函数在oal.lib中有完整实现。该库在VC++中能顺利使用,也是用VC++编译生成的。
在网上百度半天,类似问题都只有提问最终没解决能用的解决方案啊。
我是Qt菜鸟,希望高手们不吝赐教!谢谢.....................windows7环境