在QT使用动态库链接编译时出现问题:
报错如下:
/usr/bin/ld: /home/INVINCIBLE/WX/demo/1790_LIBtop/1790/lib/libLIB1790.so: undefined reference to `__cxa_throw_bad_array_new_length@Qt_5'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1287: 1790] Error 1
15:39:35: 进程"/usr/bin/make"退出,退出代码 2 。
Error while building/deploying project 1790 (kit: Replacement for "Desktop Qt 5.14.2 GCC 64bit")
The kit Replacement for "Desktop Qt 5.14.2 GCC 64bit" has configuration issues which might be the root cause for this problem.
When executing step "Make"
描述:
1.该项目由QT5.8 Ubuntu环境下创建,动态库libLIB1790.so使用QTcreator创建。项目移至Qt 5.18 Debain环境下报错。
2.在原环境下创建一个简单c++动态库联合编译工程,移植成功;
3.在原环境下创建一个包含QT c++动态库联合编译工程,移植成功;
4.移植整个项目出现问题。(包含路径正确)