Questions tagged [mysql++]

MySQL++ is a C++ wrapper for MySQL’s C API

MySQL++ is a C++ wrapper for MySQL’s C API.

It is built around the same principles as the Standard C++ Library, to make dealing with the database as easy as dealing with STL containers.

In addition, MySQL++ provides facilities that let you avoid the most repetitive sorts of SQL within your own code, providing native C++ interfaces for these common tasks.

More info: Product website

87 questions
7
votes
3 answers

"'assert’ was not declared in this scope" in MySQL++

I'm compiling a project in XCode where MySQL++ in included and linked to. For some reason, I keep getting the following compiler error: 'assert’ was not declared in this scope originating from cpool.h, a header file that's part of MySQL++. Does…
Anonymous
  • 1,750
  • 3
  • 16
  • 21
7
votes
2 answers

Setting up Mysql++ in linux

I want to connect to a mysql database with C++ in linux. On my local machine I am running Ubuntu, and installed the mysql server and client packages: sudo apt-get install mysql-server mysql-client I came across Mysql++ but have some problems when…
Aaron
  • 1,693
  • 4
  • 26
  • 40
5
votes
4 answers

mysql++ insert how to?

I am having problem to INSERT some values into database. Database name is users, and table is heroes. I am doing some mmorpg game developing for purpose of learning. This is mysql code that works INSERT INTO heroes (HeroID,Strenght, Dexterity,…
user2597689
  • 75
  • 1
  • 8
4
votes
4 answers

Avoiding conflicting declaration errors in typedef c++

Is there a way I can make g++ ignore or work around conflicting typedefs? Background: I'm writing some c++ code for the gridlab_d simulator. My model needs to connect to a c++ database, so I'm using the mysql++ library. use of the mysql++ library…
Vikas Yendluri
  • 341
  • 3
  • 7
  • 13
3
votes
1 answer

mysql++ problem with linking

I have problem, I use mysql++ 3.1.0: after building mysql++.sln in debug and release mode for vc2008, and using instal.hta then adding dirrectoires in vc++ directories to lib and include folders, and adding in project properties-> Linker-> General…
Aram Gevorgyan
  • 2,175
  • 7
  • 37
  • 57
3
votes
1 answer

How to rewrite C++ template code for Borland compiler

I'm trying to compile MySql++ using Borland's 32-bit compiler. This compiler is well known to have problems with some template syntax. The compiler is also almost obsolete, as it is being replaced with the clang compiler. However, if the following…
Totte Karlsson
  • 1,261
  • 1
  • 20
  • 55
3
votes
4 answers

MySQL++, storing realtime data

Firstly I'm an engineer, not a computer scientist, so please be gentle. I currently have a C++ program which uses MySQL++. The program also incorporates the NI Visa runtime. One of the interrupt handlers receives data (1 byte) from a USB device…
user259180
3
votes
4 answers

mysql_version.h not found when building application with mysql++

I want to connect to my MySQL database with c++ with the mysql++ library (wrapper) in linux (ubuntu 12.04). I installed mysql via the xampp for linux, but also tried it with sudo apt-get istall mysql-server. I got the mysql++ lib with sudo apt-get…
Bert Dewaele
  • 41
  • 1
  • 5
2
votes
1 answer

MySQL++ SSL Support on Linux

I am attempting to get MySQL++ to work correctly on Debian 6 with SSL support. I have tested everything on Windows 7 and it works great. Everything is encrypted. I am having a little bit of trouble porting it to Debian though. This is my…
Ryan
  • 53
  • 5
2
votes
2 answers

mysqlpp connect method timeout - how can I control it?

I'm trying to control the connect method timeout, but I didn't find the appropriate mean. Just to be clear, I'm not talking about the Idle connection timeout(ConnectTimeoutOption). The scenario I need to deal with is a database gone away, and my…
Avihay
  • 21
  • 3
2
votes
2 answers

MySQL++ and AUTO_INCREMENT

Use to work with a MySQL + + (library for C + +) The database has some fields for which you AUTO_INCREMENT. How to know what value will these fields when inserting a new row to the table?
GeoGo
  • 2,368
  • 2
  • 16
  • 11
2
votes
0 answers

debugging with GDB throw "lost connection to mysql" errors

I tried to debug a program with gdb because it crashing randomly (after some days, after some hours..). But when I tried to debug it, my program throw these errors: "Lost connection to MySQL server" and "MySQL server has gone away" I don't get these…
AsDiKa
  • 21
  • 1
2
votes
1 answer

Could we ignore the MySQL++ C4275 warning?

c:\program files\microsoft visual studio 9.0\vc\include\result.h(212) : warning C4275: non dll-interface class 'std::_Container_base_aux' used as base for dll-interface class 'std::_Container_base_aux_alloc_real<_Alloc>' 1> with 1> …
Vladimir
  • 191
  • 1
  • 9
2
votes
1 answer

Problem using mysql++ library

I've read the tutorial at, and I generally get how that works: http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#simple I am trying to build this mysql++ code, and I'm getting an error: std::ostringstream query3; query3<<"select pipe_id…
Judy
  • 1,533
  • 9
  • 27
  • 41
2
votes
1 answer

Linux application - minimize the dependencies

I am trying to minimize the dependencies caused by the shared library mysql++. I know it sounds strange; but I am struggling to solve a platform limitation on Slamd64 ( with 32bit compatibility installed ), where it natively doesn't have certain…
ϹοδεMεδιϲ
  • 2,790
  • 3
  • 33
  • 54
1
2 3 4 5 6