dbTalk Databases Forums  

RE: libmysql++-dev

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss RE: libmysql++-dev in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Denis ERCHOFF
 
Posts: n/a

Default RE: libmysql++-dev - 11-22-2005 , 02:01 PM






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: <mailtolusplus-help (AT) lists (DOT) mysql.com>
List-Unsubscribe:
<mailtolusplus-unsubscribe-d_erchoff=hotmail.com (AT) lists (DOT) mysql.com>
List-Post: <mailtolusplus (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


Reply With Quote
  #2  
Old   
Steve Povilaitis
 
Posts: n/a

Default RE: libmysql++-dev - 11-22-2005 , 02:20 PM






=20
In my Redhat app I include the mysql++ library like so:

#include <mysql++.h>

Quote:
-----Original Message-----
From: David Vallejo Fern=E1ndez [mailtoavid.Vallejo (AT) alu (DOT) uclm.es]=20
Sent: Tuesday, November 22, 2005 1:31 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: libmysql++-dev
=20
Hello!
=20
I use Debian Sid and I installed the libmysql++-dev package.
=20
How can I compile a simple example? I tried with:
=20
g++ test1.cpp -o test -I/usr/include/mysql++, but the=20
compiler said me that de file mysql++ does not exists. =20

This e-mail and any attachments are provided through AEgis
Technologies' e-mail services and may contain company sensitive and/or
privileged information. If you are not the intended recipient, please
notify the sender immediately by return e-mail, delete this e-mail and
destroy any copies. Any dissemination or use of this information by a
person other than the intended recipient is unauthorized and may be
illegal.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.