I am not sure how is working g++, but have you tryed #include <mysql++>
instead of #include "mysql++" ?
And the mysql++ is in the include path ?
----Original Message Follows----
From: David Vallejo Fernández <David.Vallejo (AT) alu (DOT) uclm.es>
To: plusplus (AT) lists (DOT) mysql.com
Subject: libmysql++-dev
Date: Tue, 22 Nov 2005 19:31:22 +0100
MIME-Version: 1.0
Received: from lists.mysql.com ([213.136.52.31]) by
bay0-mc2-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 22
Nov 2005 10:28:26 -0800
Received: (qmail 5518 invoked by uid 510); 22 Nov 2005 18:26:37 -0000
Received: (qmail 5496 invoked by uid 509); 22 Nov 2005 18:26:37 -0000
Received: pass (lists.mysql.com: local policy)
X-Message-Info: 6sSXyD95QpXj5s/o5ZYVr1/xzUchBr7EsaUpHKDIxgM=
Mailing-List: contact plusplus-help (AT) lists (DOT) mysql.com; run by ezmlm
List-ID: <plusplus.mysql.com>
Precedence: bulk
List-Help: <mailto

lusplus-help (AT) lists (DOT) mysql.com>
List-Unsubscribe:
<mailto

lusplus-unsubscribe-d_erchoff=hotmail.com (AT) lists (DOT) mysql.com>
List-Post: <mailto

lusplus (AT) lists (DOT) mysql.com>
List-Archive: http://lists.mysql.com/plusplus/5185
Delivered-To: mailing list plusplus (AT) lists (DOT) mysql.com
User-Agent: Debian Thunderbird 1.0.7 (X11/20051017)
X-Accept-Language: en-us, en
Return-Path: plusplus-return-5185-d_erchoff=hotmail.com (AT) lists (DOT) mysql.com
X-OriginalArrivalTime: 22 Nov 2005 18:28:26.0569 (UTC)
FILETIME=[87645390:01C5EF92]
Hello!
I use Debian Sid and I installed the libmysql++-dev package.
How can I compile a simple example? I tried with:
g++ test1.cpp -o test -I/usr/include/mysql++, but the compiler said me
that de file mysql++ does not exists. Here is part of the example:
......
#include "mysql++"
#include <iostream>
#include <iomanip>
using namespace mysqlpp;
using namespace std;
int
main(int argc, char *argv[])
{
// Connect to the sample database.
mysqlpp::Connection con(false);
if (!connect_to_db(argc, argv, con)) {
return 1;
}
......
Thank you for helping me.
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...mail (DOT) com
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw