问题描述
我正在尝试使用Netbeans构建应用程序,并出现以下错误:
/ usr / bin / ld:找不到-lMysqLpp
我相信,根据以下屏幕截图,这种情况就存在;
这是我从Netbeans收录的内容;
以下是Netbeans的完整输出;
cd '/media/psf/DL/DL_src/FEC_src/docugirl'
/usr/bin/make -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/media/psf/DL/DL_src/FEC_src/docugirl'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk /app/bin/docugirl
make[2]: Entering directory '/media/psf/DL/DL_src/FEC_src/docugirl'
mkdir -p /app/bin
g++ -o /app/bin/docugirl build/Debug/GNU-Linux/docugirl.o -lm -lpthread /pcli/library/libcore.a /pcli/library/libsdd.a -lMysqLpp
/usr/bin/ld: cannot find -lMysqLpp
collect2: error: ld returned 1 exit status
make[2]: *** [nbproject/Makefile-Debug.mk:67: /app/bin/docugirl] Error 1
make[2]: Leaving directory '/media/psf/DL/DL_src/FEC_src/docugirl'
make[1]: *** [nbproject/Makefile-Debug.mk:59: .build-conf] Error 2
make[1]: Leaving directory '/media/psf/DL/DL_src/FEC_src/docugirl'
make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2
BUILD Failed (exit value 2,total time: 472ms)
为完整起见,源位于远程Debian服务器上(就像以前成功创建和构建的MysqL类型应用程序一样)。
所以,我有点困惑,我认为并假设我拥有必要的MysqL东西才能构建它,我能够使用此设置构建其他MysqL应用程序。这个 MysqLpp 与/ usr / include / MysqL和/ usr / include / MysqL ++是否不同/附加?
/ usr / include / MysqL 链接到 / usr / include / mariadb
在此先感谢您的帮助,
解决方法
@HEKTO 这确实是问题,但似乎当前版本的 Debian (10.5) 不包含 libmysql++-dev 包,我还不知道其原因,尽管我已经复制了 mysql++ 头文件,libmysqlpp.so 确实不存在。在这种情况下,我使用了以前的版本,但我相信下一个版本会包含这个。