Re: How To compile MySQL++ programs?
Hi man!
If you read the readme that comes with the tar.gz you'll see connect_to_db is a function inside "util.h" and "util.cpp" tha is inside the examples directory.
You don't need it.
Connect to the database with Connection object, check out the constructor:
mysqlpp::Connection::Connection ( const char * db,
const char * host = "",
const char * user = "",
const char * passwd = "",
uint port = 0,
my_bool compress = 0,
unsigned int connect_timeout = 60,
cchar * socket_name = 0,
unsigned int client_flag = 0
)
Regards
Edited 1 time(s). Last edit at 05/21/2007 07:09PM by Marcelo Valverde.
Subject
Views
Written By
Posted
7729
August 18, 2005 01:57AM
3622
November 21, 2005 01:41AM
3609
November 21, 2005 11:47PM
4063
July 24, 2006 02:44AM
Re: How To compile MySQL++ programs?
3607
May 21, 2007 07:02PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.