MySQL Forums
Forum List  »  Connector/C++

Re: How To compile MySQL++ programs?
Posted by: Marcelo Valverde
Date: May 21, 2007 07:02PM

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


Edited 1 time(s). Last edit at 05/21/2007 07:09PM by Marcelo Valverde.

Options: ReplyQuote

Written By
November 21, 2005 01:41AM
November 21, 2005 11:47PM
Re: How To compile MySQL++ programs?
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.