LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2020, 12:14 PM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
Is there a difference between mysql.h and mysql++.h and how can I get the mysql++ stuff installed properly?


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.

Last edited by plisken; 10-25-2020 at 12:18 PM.
 
Old 10-25-2020, 01:57 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,910

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
for some reason mysql++ is missing from debian buster. see for example here: https://packages.debian.org/search?s...ds=mysql%2B%2B (switch to buster/whatever)
I have no idea why.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a way to show only ACTUAL normal mounted devices? Lot of distros seem to put lot of stuff in there Red Squirrel Linux - Software 14 05-25-2020 02:16 AM
LXer: Difference Between PostgreSQL And MySQL And How To Migrate From MySQL To PostgreSQL LXer Syndicated Linux News 0 05-27-2017 08:26 PM
[SOLVED] Installed Xubuntu, now can't boot to Windows. But there's more confusing stuff. ValleyForge Linux - Newbie 18 09-07-2012 07:19 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration