I've come across some older applications that I need to work on and maintain and noticed there are both
mysql and a
mysql++ folders in
/user/include and I cant seem to replicate that on my Debian 10 system for example.
I can of course copy across the
mysql++ folder from the older system and that seems to satisfy some of the complaints during build but it ultimately fails with;
/usr/bin/ld: cannot find -lmysqlpp
I have a slightly more complete post on stack overflow here:
https://stackoverflow.com/questions/...-it-appears-to
(so save copying again as I cant seem to post images here)
If it matters, running
mysql_config --cflags
gives;
-I /usr/include/mariadb -I /usr/include/mariadb/mysql
and running
mysql_config --libs
gives;
-L /usr/lib/x86_64-linux-gnu/ -mariadb
The latter is where I think the problem may be?
I am using Netbeans for remote development and this particular issue is on a Debain 10.5 system.
I have no issues with any other applications I create that have the
mysql.h include but these others that I've inherited have the
mysql++.h and that is where the problems begin.
As I say, I can copy across the
/usr/include/mysql++ folder from an older system but I believe it is not finding the compiled library, like
mysqlclient or in this case
mysqlpp
Any assistance would be greatly appreciated.