Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
MySQL++ and Gentoo

MySQL++ and Gentoo

2007-10-22       - By Daniel

 Back
I'm using G++ 4.1.2 (Gentoo 4.1.2 p1.0.2)
How can I get MySQL++ to work with g++ in gentoo with little to no effort?
Emerging and compiling doesn't seem to work as you would expect:

This is trying to compile one of the simple examples right after emerging...

mysql # g++ ./simple1.cpp -o ./simple1
./simple1.cpp:1:18: error: util.h: No such file or directory
./simple1.cpp:3:21: error: mysql++.h: No such file or directory
./simple1.cpp: In function 'int main(int, char**)':
./simple1.cpp:14: error: 'mysqlpp' has not been declared
./simple1.cpp:14: error: expected `;' before 'con'
./simple1.cpp:15: error: 'con' was not declared in this scope
./simple1.cpp:15: error: 'connect_to_db' was not declared in this scope
./simple1.cpp:20: error: 'mysqlpp' has not been declared
./simple1.cpp:20: error: expected `;' before 'query'
./simple1.cpp:21: error: 'query' was not declared in this scope
./simple1.cpp:22: error: 'mysqlpp' has not been declared
./simple1.cpp:22: error: expected `;' before 'res'
./simple1.cpp:26: error: 'res' was not declared in this scope
./simple1.cpp:27: error: 'mysqlpp' has not been declared
./simple1.cpp:27: error: expected `;' before 'row'
./simple1.cpp:28: error: 'mysqlpp' has not been declared
./simple1.cpp:28: error: expected `;' before 'i'
./simple1.cpp:29: error: 'i' was not declared in this scope
./simple1.cpp:29: error: 'row' was not declared in this scope
mysql # emerge -s mysql++
Searching...
[ Results for search key : mysql++ ]
[ Applications found : 1 ]

*  dev-db/mysql++
     Latest version available: 2.2.2-r1
     Latest version installed: 2.2.2-r1
     Size of files: 1,669 kB
     Homepage:      http://www.mysql.org/downloads/api-mysql++.html
     Description:   C++ API interface to the MySQL database
     License:       LGPL-2 (See http://GPL-2.ora-code.com)

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=mysql@(protected)