Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all 529 articles
Browse latest View live

C++ Connector crashes if SQL server is not reachable. Works fine otherwise (no replies)

$
0
0
Windows 32 bit. C++ connector 1.1.3
Connector works fine if MySQL is reachable (either local or remote), but crashes (both in debug and release build) if it is not reachable. I have tried compiling connector with my compiler (VS2008) - the same result.

It works fine in console application, but not from my native C++ application. Code is virtually the same standard example code from documentation.

Here it is:

try
{
/* Create a connection */
driver = get_driver_instance();
}
catch (sql::SQLException &e)
{
StringCchPrintfA(szQry,sizeof(szQry), "SQLException occured! Can't get driver instance. \r\n\nMySQL error code %d\r\n\nSQLState %d\r\n\nERR:%s",e.getErrorCode(),e.getSQLState(),e.what());
MessageBoxA(NULL,szQry,"SWI Marxman: SQL ERROR" ,MB_ICONEXCLAMATION|MB_OK);
}

try
{
/* try to connect */
con = driver->connect(szConnStr, szUser, szPassword);
}
catch (sql::SQLException &e)
{
StringCchPrintfA(szQry,sizeof(szQry), "SQLException occured! Can't connect to MySQL. \r\n\nMySQL error code %d\r\n\nSQLState %d\r\n\nERR:%s",e.getErrorCode(),e.getSQLState(),e.what());
MessageBoxA(NULL,szQry,"MyAPP: SQL ERROR" ,MB_ICONEXCLAMATION|MB_OK);
}
catch (std::runtime_error &e)
{
StringCchPrintfA(szQry,sizeof(szQry), "Run-time error! Can't connect to MySQL. \r\n\nERROR:%s",e.what());
MessageBoxA(NULL,szQry,"MyAPP: SQL CONNECT ERROR" ,MB_ICONEXCLAMATION|MB_OK);
}

Connection (no replies)

$
0
0
Hi all,

I am newbie in linux. Currently i am having a problem in connecting mysql and c++ in linux. When i try to run my script in terminal i have a problem as below,

test.cpp:3:19: fatal error: mysql.h: No such file or directory
compilation terminated.

To overcome this problem, i tried to install the 'mysql-connector-cpp' package. However, i do have another problem which is,

'mysql-connector-cpp' not found in package names. Trying capabilities.
No provider of 'mysql-connector-cpp' found.


So is there anyway to overcome this problem or anyway to get the "mysql.h' ?Anyone can assist me about this?

Best Regards.

Building the c++ connector source with cmake? (no replies)

$
0
0
From what I understand in order to build the c++ connector dll,lib files I have to use cmake, I have looked in the c++ connector directory for a cmakelist.txt file and I don't see one,what do I do ?, I am working on windows 7 (x86), thanks

MySQL Connector : Prepared Statement in C++ (no replies)

$
0
0
There is anyone who help me to find where i'm wrong in my code because i'm new in c++ development. This example code gives following error "ERROR: MySQL_Connection::prepareStatement(const sql::SQLString& sql, int autoGeneratedKeys)".
The example code is here :
/* Standard C++ includes */
#include <cstdlib>
#include <iostream>
#include <mysql_connection.h>
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/prepared_statement.h>
using namespace std;
using namespace sql;
int main(void)
{
try {
Driver *driver;
Connection *con;
PreparedStatement *pstmt;
/* Create a connection */
driver = get_driver_instance();
con = driver->connect("tcp://127.0.0.1:3306", "root", "");
con->setAutoCommit(false);
/* Connect to the MySQL test database */
con->setSchema("test");
/* Create a prepared query */
pstmt = con->prepareStatement("INSERT INTO City(CityName) VALUES (?)");
pstmt->setString(1, "Denmark");
pstmt->execute();

con->commit();
con->setAutoCommit(true);

delete pstmt;
delete con;
} catch (sql::SQLException &e) {
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line » " << __LINE__ << endl;
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() << " )" << endl;
}
cout << endl;
return EXIT_SUCCESS;
}

segmentation fault ./main (no replies)

$
0
0
I'm Getting this error when it reaches the
"int rowcnt = res -> rowsCount();" line.

My c++ is a little rusty and I can figure it out. Any help would apprecisted.

#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <stdexcept>
/* uncomment for applications that use vectors */
#include <vector>

#include "mysql_connection.h"

#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>

#define EXAMPLE_HOST "localhost"
#define EXAMPLE_USER "worlduser"
#define EXAMPLE_PASS "worldpass"
#define EXAMPLE_DB "world"

using namespace std;


class cmysql{

public:
string host;
string user;
string pass;
string database;


vector<string> getdatacolumns(string strsql){
cout << "begin" << endl;
vector<string> verr;
cout << "Connector/C++ tutorial framework..." << endl;
cout << endl;

try {

vector<string> myreturn;
sql::Driver* driver = get_driver_instance();
std::auto_ptr<sql::Connection> con(driver->connect(host, user, pass));
con->setSchema(database);
std::auto_ptr<sql::Statement> stmt(con->createStatement());
stmt->executeQuery("select * from customer");
std::auto_ptr <sql::ResultSet> res;

do {

res.reset(stmt->getResultSet());
//Setup Vector

int rowcnt = res -> rowsCount();

vector<string> vec;

unsigned int i =1;

while (res->next()) {

vec = res->getString("last_name") + "," +res->getString("first_name") ;

i = i + 1;

}
return vec;
} while (stmt->getMoreResults());

//=================================================================================

}
catch (sql::SQLException &e) {
/*
MySQL Connector/C++ throws three different exceptions:

- sql::MethodNotImplementedException (derived from sql::SQLException)
- sql::InvalidArgumentException (derived from sql::SQLException)
- sql::SQLException (derived from std::runtime_error)
*/
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line " << __LINE__ << endl;
/* what() (derived from std::runtime_error) fetches error message */
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() << " )" << endl;
verr[0] = e.getSQLState();
//return EXIT_FAILURE;
}

}

};

Installing a C++ connector on CentOS (no replies)

$
0
0
I'm trying to install a C++ MySQL connector on a centOS 6.4 64bit machine.
I've installed MySQL 5.6 ( a server and client component, and an additional shared component in order to get the mysqlclient.s0 libraries )
It seems to work fine.

On the site I've found the following file :
Red Hat/Oracle Enterprise Linux ver. 6 (x86, 64-bit), Compressed TAR Archive
After reading the INSTALL file I've tried to invoke cmake . , but got an error about a missing CMakeLists.txt.
Later I found out I need the actual source code in the drop down pane :
- Generic Linux (Architecture Independent), Compressed TAR Archive
there is a CMakeLists.txt file in the directory of the the source code
and I am able to run : cmake .


- why is there also the platform specific download ?
- Can I get by with only the source code ?


when I run cmake . from the directory, I get the following output:
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line

/home/mysql-connector-c++-1.1.3-linux-el6-x86-64bit/source/CMakeLists.txt:39 (if)

closes on the line

/home/mysql-connector-c++-1.1.3-linux-el6-x86-64bit/source/CMakeLists.txt:41 (endif)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Environment compile flags:
-- Environment link flags:
CMake Error at CMakeLists.txt:120 (MESSAGE):
Boost or some of its libraries found. If not in standard place please set
-DBOOST_ROOT:STRING=


-- Configuring incomplete, errors occurred!

this is the content of lines around line CMakeLists.txt:39-41 :
if(COMMAND cmake_policy AND POLICY CMP0015)
cmake_policy(SET CMP0015 NEW)
endif(COMMAND cmake_policy)

this is the content of lines around line CMakeLists.txt:120 :

IF(NOT Boost_FOUND)
# Try dynamic
set(Boost_USE_STATIC_LIBS FALSE)
FIND_PACKAGE(Boost COMPONENTS ${MYSQLCPPCONN_BOOST_COMPONENTS})
IF(NOT Boost_FOUND)
MESSAGE(FATAL_ERROR "Boost or some of its libraries found. If not in standard place please set -DBOOST_ROOT:STRING=")
ENDIF(NOT Boost_FOUND)
ENDIF(NOT Boost_FOUND)

- I don't understand. did it find the boost components or it didn't ?
and if it did, why is this an error?
- I've installed/updated boost components with : yum install boost
this is the output of a : find / -name *boost* :

/usr/lib64/libboost_system-mt.so.5
/usr/lib64/libboost_system.so.5
/usr/lib64/libboost_graph-mt.so.5
/usr/lib64/libboost_filesystem-mt.so.5
/usr/lib64/libboost_date_time-mt.so.5
/usr/lib64/libboost_wserialization-mt.so.5
/usr/lib64/libboost_unit_test_framework.so.5
/usr/lib64/libboost_filesystem.so.5
/usr/lib64/libboost_prg_exec_monitor.so.5
/usr/lib64/libboost_signals-mt.so.5
/usr/lib64/libboost_date_time.so.5
/usr/lib64/libboost_regex.so.5
/usr/lib64/libboost_prg_exec_monitor-mt.so.5
/usr/lib64/libboost_wave-mt.so.5
/usr/lib64/libboost_serialization-mt.so.5
/usr/lib64/libboost_program_options-mt.so.5
/usr/lib64/libboost_graph.so.5
/usr/lib64/libboost_signals.so.5
/usr/lib64/libboost_python.so.5
/usr/lib64/libboost_iostreams.so.5
/usr/lib64/libboost_serialization.so.5
/usr/lib64/libboost_python-mt.so.5
/usr/lib64/libboost_unit_test_framework-mt.so.5
/usr/lib64/libboost_iostreams-mt.so.5
/usr/lib64/libboost_program_options.so.5
/usr/lib64/libboost_regex-mt.so.5
/usr/lib64/libboost_thread-mt.so.5
/usr/lib64/libboost_wserialization.so.5
/usr/include/c++/4.4.4/tr1_impl/boost_sp_counted_base.h
/usr/include/c++/4.4.4/bits/boost_concept_check.h
/usr/share/icons/oxygen/22x22/actions/mixer-microphone-front-boost.png
/usr/share/icons/oxygen/22x22/actions/mixer-microphone-boost.png
/usr/share/doc/boost-regex-1.41.0
/usr/share/doc/boost-signals-1.41.0
/usr/share/doc/boost-system-1.41.0
/usr/share/doc/boost-iostreams-1.41.0
/usr/share/doc/boost-thread-1.41.0
/usr/share/doc/boost-filesystem-1.41.0
/usr/share/doc/boost-program-options-1.41.0
/usr/share/doc/boost-test-1.41.0
/usr/share/doc/boost-wave-1.41.0
/usr/share/doc/boost-date-time-1.41.0
/usr/share/doc/boost-python-1.41.0
/usr/share/doc/boost-serialization-1.41.0
/usr/share/doc/boost-graph-1.41.0
/var/lib/yum/yumdb/b/c353df239962740ed530d499bb76180201aa8a1f-boost-program-options-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/b2292fc632d0f893a2efc41c077bcc88a83649cc-boost-filesystem-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/137b574a8590a642229c2eaa20c0c98bd4c367e8-boost-python-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/54cc53886ae5c9f0a36e3e55abe8cc44d30b0c88-boost-date-time-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/b17dfa289b3c0e615f7e598c288dbc09dcce09b6-boost-wave-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/5cca310e29fc5639ae673069c639327b03029c2e-boost-serialization-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/c5bea6cfd9e95fb42d1ff7ff26068f52dde8d3c0-boost-test-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/4426c89bd11acd85e92fb4eafe011351944a81ea-boost-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/e6fddb18e7fd66b59d3cb6aa5061436592ee81ef-boost-iostreams-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/6b2fcabdebbbf0f3dda98bad6ea4c259b366f571-boost-signals-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/8bda127d59cc392fe94ec251d3514c7512100333-boost-system-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/d75110a5f95a50a32cd3554afd35a95d3c3c1eea-boost-regex-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/f06fb95c4bcec8c01bd24bf89600ca743b13f6bd-boost-thread-1.41.0-17.el6_4-x86_64
/var/lib/yum/yumdb/b/a44d43b7ec316bf9e52b6d16973775c7a99271df-boost-graph-1.41.0-17.el6_4-x86_64


I've tried to run the cmake . with the following parameters without luck :

cmake . -DBOOST_ROOT:STRING=/usr/lib64/
and
cmake . -DBOOST_ROOT:STRING=/usr/share/doc/

Any help will be greatly appreciated!

Can not use getString(), if I do code crashes (no replies)

$
0
0
Hi, guys,

I really need a help! I've been trying multiple solutions for almost a week, without any success... very frustrating.

I'm testing the use of C++/Connector (1.1.3) and everything worked fine: connection to the data base, the return of statement, etc.

But every member function whose return is a SQLString type chashes the code, even it has passed by compiler (VS 2010, and Boot included).

Detailing better: After getting a valid ptr to ResultSet (res) it's possible to output every kind of fields, except for char(fields), as shown in code parts bellow:




stmt = con->createStatement();
stmt->execute("USE test_area");
stmt->execute("DROP TABLE IF EXISTS test");
stmt->execute("CREATE TABLE test(id INT, perc DOUBLE, completo BOOL, label CHAR(5))");
for (int k=0; k<30;k++)
stmt->execute("INSERT INTO test(id, perc, completo, label) VALUES (1, .93, TRUE, 'Ajkjk')");

res = stmt->executeQuery("SELECT * FROM test LIMIT 0,10");


while (res->next())
{
cout<<"\n"<<"id = " <<res->getInt("id")<<"\tperc: "<<res->getDouble("perc")<<"\t completo : "<<res->getBoolean("completo");//no problem in this line, almost every kinds of getX()

cout<<res->getString("label");//-> But here it crashes!!!

}

PS: Hints about how to post code in inner windows are welcome.

C++ Connector Cmake problems (no replies)

$
0
0
Hi, I want to connect to my MySQL database in my C++ program. I downloaded the C++ connector source and generic linux tar (x64):

mysql-connector-c++-1.1.3-linux-glibc2.3-x86-64bit.tar.gz
mysql-connector-c++-1.1.3.tar.gz

I untarred the source and ran cmake and got these issues:
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line

/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:39 (if)

closes on the line

/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:41 (endif)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=/usr/include
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:218 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)


CMake Error at FindMySQL.cm:220 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)


-- Configuring incomplete, errors occurred!


I can confirm i installed mysql server and client.
sudo apt-get install mysql-server mysql-client


What can I do to fix this? Thanks

connector using al memory (no replies)

$
0
0
For any reason the Query and the Result variables end up using all the system memory. How do I clear the Query and the Result variable, so I can continue using it

sql::Statement *Query;
sql::ResulSet *Result;
while(1){
Query = con->createStatement();
Result = Query->executeQuery("SELECT `Some` FROM `Table` LIMIT 1");
Result->next();
Result->close();
Query->close();
cout << "console message..." << endl;
}

Debug and release outputs 1.1.3 (no replies)

$
0
0
Hi,

I'm trying to build the C++ connector from source using Visual Studio 2008 Express. I can get it working up to the point of building the libraries (e.g. I have mysqlcppconn.dll and mysqlcppconn-static.lib built OK), but what I'm having problems with is organising the outputs so that debug and release builds do not output to the same paths.

I'd prefer to modify the CMake files and have the files install to the correct location rather than just build and then manually copy, as that will end in mistakes at some point.

I already had to change the cppconn/CMakeLists.txt file so that config.h (as built from config.h.cm) is copied from the build directory rather than the source directory otherwise the INSTALL target fails due to it not finding config.h.

Generating with and without CMAKE_BUILD_TYPE to Debug makes no difference to the output paths or filenames, but maybe that is not meant to apply to the C++ connector? The pdb files are also not copied to the output. I managed to edit the CMakeLists.txt so that libs are separated into debug or opt depending on the CMAKE_BUILD_TYPE setting, however I'd prefer if that could be set in the project configurations rather than having to re-generate between building for debug and release. Is that even possible with cmake?

Before I go too far, is this the correct approach? How is this solved with the official MSI releases for Windows, where I assume these steps need to be done anyway?

Thanks.

Type 'sql::ResultSet' could not be resolved (no replies)

$
0
0
I've been looking into the C++ connector documentation, to figure out how to access a MySQL database, and using prepared statements. However when using code like

sql::ResultSet *res;

I get the error "Type 'sql::ResultSet' could not be resolved". The documentation specifically uses this, so what gives?

yet another MinGW32 connector build failure (no replies)

$
0
0
Though there are lots of posts regarding MinGW failing to build connector/c++, none of them seemed to help. I'm running 32-bit Vista with MinGW 4.8.1 trying to compile MySQL Connector/C++ version 1.1.3. (CMake 2.8.12). Seems like I have conflicts that lead to compile errors. I'm sure it's a simple matter of defining the right value, but I'm hoping someone recognizes the errors.. Here's the output from mingw32-make:

Thanks for any help...

>mingw32-make
Scanning dependencies of target mysqlcppconn
[ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled
by default]
/*
^
In file included from C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:68:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_config.h:509:0: warning: "isnan" redefined [enabled by default]
#define isnan _isnan
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:28:0:
c:\progra~1\codebl~1\mingw\include\math.h:376:0: note: this is the location of the previous definition
#define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) \
^
In file included from C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:68:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_config.h:527:0: warning: "NOMINMAX" redefined [enabled by default]
#define NOMINMAX
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\c++config.h:420:0,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\os_defines.h:45:0: note: this is the location of the previous definition
#define NOMINMAX 1
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:81:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable:4251)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:36:0:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:48:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable : 4290)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:52:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:53:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4275)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:58:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:0:
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:162:27: error: invalid suffix "ui64" on integer constant
return val.bval ? UL64(1) : UL64(0);
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:38:17: note: in definition of macro 'UL64'
#define UL64(x) x##ui64
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:162:37: error: invalid suffix "ui64" on integer constant
return val.bval ? UL64(1) : UL64(0);
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:38:17: note: in definition of macro 'UL64'
#define UL64(x) x##ui64
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h: In function 'double rint(double)':
C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:1154:35: error: 'double rint(double)' was declared 'extern' and later 'static' [-fpermissive]
static inline double rint(double x)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:28:0:
c:\progra~1\codebl~1\mingw\include\math.h:646:23: error: previous declaration of 'double rint(double)' [-fpermissive]
extern double __cdecl rint (double);
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:31:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h: At global scope:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:94:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:43:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
typedef int int32_t;
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:31:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:98:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:44:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^
In file included from C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/resultset.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.h:39,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:32:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:94:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:43:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
typedef int int32_t;
^
In file included from C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/resultset.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.h:39,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:32:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:98:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:44:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^
driver\CMakeFiles\mysqlcppconn.dir\build.make:57: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj' failed
mingw32-make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj] Error 1
CMakeFiles\Makefile2:94: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/all' failed
mingw32-make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3>

cannot compile prepared_statement.cpp (1 reply)

$
0
0
Hello to everybody
I'm having problems trying to compile the example prepared_statement.cpp included in the c++ connector sources with Visual Studio 2010, particularly, I get the following errors on this statement:

std::auto_ptr< sql::PreparedStatement > prep_stmt(con->prepareStatement("DROP TABLE IF EXISTS test"));
prep_stmt->execute();

The compiler says that "pointer (prep_stmt) to an incomplete class type is not allowed"

Any clue?
Thanks in advance.

Initialize pointer to connection (no replies)

$
0
0
I create a pointer to a connection like in the examples:

sql::Connection *con;

Now, I would like to initialize this connection, but not with sql::driver::connect(), because I may not be able to create a connection immediately before my program tries to use the pointer.

I see some use mysql_init(null), but I am using statically linked libraries and cannot see this available. Do I have any options?

Running in debug but error in release (1 reply)

$
0
0
Hi guys,

I'm using the Connector/C++ 1.1.3 for a Visual Studio 2010 (32bit) project. Everything is working fine and as expected in debug mode. But when I execute the release version, I'm running into an error:

Unhandled exception at 0x747BAF68 (msvcr90.dll) in recognition_app.exe: 0xC0000005: Access violation reading location 0x00006477.

This line is the source of the error:
con = driver->connect("tcp://127.0.0.1:3306", username, pwd);

Getting a driver instance works (driver = get_driver_instance();).
Does anyone know how to solve this?

Cheers,
Alex

AFC|NFC (no replies)

#include Problem! (no replies)

$
0
0
I am using MS VS 2008 and I am developing a program, which shall use MySQL server on another PC. I downloaded the MySQL Connector/C++. I included "mysql_connection.h", but the compiler cannot find "<boost/variant.hpp>".

Pls, help me!

Sometimes you will surprised with internet (no replies)

$
0
0
Sometimes you will surprised with internet Agree with me that this is an exlusive share, you should not miss any chance to get the file that i shared here, hurry up and enjoy your file for free now.


http://prezi.com/2s2nebfyucmk/watch-the-vampire-diaries-season-5-episode-11-online-free/

http://myanimelist.net/forum/?topicid=741435

http://www.ethionet.et/?q=node/626813

http://tf2stranges.com/entry.php?166384-Watch-The-Vampire-Diaries-Season-5-Episode-11-s05e11-500-Years-of-Solitude-Online-Fre


http://tf2stranges.com/entry.php?166481-Watch-I-Frankenstein-Movie-%282014%29-Full-Online-Free-Streaming-Putlocker

http://www.ethionet.et/?q=node/627635

http://myanimelist.net/forum/?topicid=741453

http://boxofficemovieonlinefree.blogspot.com/2014/01/watch-i-frankenstein-2014-movie-online.html

http://myanimelist.net/forum/?topicid=741461

http://tf2stranges.com/entry.php?166671-Watch-The-Nut-Job-Online-Free-2014-Movie-Putlocker-Stream

http://www.ethionet.et/?q=node/628389



http://tf2stranges.com/entry.php?166746-Watch-Devil-s-Due-Online-Free-2014-Movie-Putlocker-Stream

http://myanimelist.net/forum/?topicid=741467


http://myanimelist.net/forum/?topicid=741477

http://tf2stranges.com/entry.php?166839-Watch-Ride-Along-Online-Free-Movie-Full-Streaming-2014-Putlocker

http://www.ethionet.et/?q=node/629187


http://tf2stranges.com/entry.php?166901-Watch-Jack-Ryan-Shadow-Recruit-Online-Free-Movie-Streaming-Putlocker

http://myanimelist.net/forum/?topicid=741481

http://www.ethionet.et/?q=node/629530

http://myanimelist.net/forum/?topicid=741489

http://www.ethionet.et/?q=node/629795

http://forum.bretagne.com/telecharger-pokemon-x-et-y-rom-2014-gratuit-pc-mac-desmume-t75288.html


http://www.ethionet.et/?q=node/630175

http://myanimelist.net/forum/?topicid=741505

http://forum.bretagne.com/telecharger-gta-5-pc-gratuit-complet-t75298.html

http://www.ethionet.et/?q=node/631141

http://myanimelist.net/forum/?topicid=741521

http://forum.bretagne.com/telecharger-call-of-duty-ghosts-gratuitement-pc-multil-t75326.html



500 Years of Solitude Frankenstein, tvd s04e11 is back with special episode (100) episode and of course new movie release fantasy action i frankenstein also worth to watch, so don't miss it guys and let's enjoy full home entetainment at your very comport zone (HOME)




http://myanimelist.net/forum/?topicid=740127
http://tf2stranges.com/entry.php?146967-Watch-gt-gt-The-Vampire-Diaries-Season-5-Episode-11-Online-Free-Stream

http://forums.naij.com/showthread.php?t=14096969

http://www.hammer-tutorial.com/forum/index.php?page=Thread&threadID=3927

http://www.extremehackers.org/megashare-the-vampire-diaries-season-4-episode-11-watch-t11089.html

http://www.staging.mmo.tm/divinesouls/forum/index.php?threads/free-watch-the-vampire-diaries-season-4-episode-11-s04e11-online.239046/

http://stolendisc.net/Thread-Watch-Free-The-Vampire-Diaries-Season-4-Episode-11-Online-Free

http://board.zoronia2.com/index.php?page=Thread&threadID=205237&s=7490f3f8fed22075829241a6b3a3913a49926b74

http://forum.koramgame.com/forum.php?mod=viewthread&tid=89614&extra=


http://myanimelist.net/forum/?topicid=740145

http://www.extremehackers.org/watch-white-collar-season-5-episode-12-taking-stock-online-t11090.html

http://forums.naij.com/showthread.php?t=14096984

http://www.hammer-tutorial.com/forum/index.php?page=Thread&threadID=3929



http://stolendisc.net/Thread-Putlocker-Watch-White-Collar-Season-5-Episode-12-Online-Free

http://board.zoronia2.com/index.php?page=Thread&threadID=205408&s=7490f3f8fed22075829241a6b3a3913a49926b74

http://tf2stranges.com/entry.php?147059-Putlocker!!!-Watch-White-Collar-Season-5-Episode-12-Taking-Stock-Online

http://www.staging.mmo.tm/divinesouls/forum/index.php?threads/watch-white-collar-season-5-episode-12-s05e12-free-online.239053/



http://www.staging.mmo.tm/divinesouls/forum/index.php?threads/watch-i-frankenstein-online-free-2014-movie-stream-putlocker.239057/

http://myanimelist.net/forum/?topicid=740151



http://stolendisc.net/Thread-Free-Watch-I-Frankenstein-Movie-Online-Streaming-2014-Putlocker

http://board.zoronia2.com/index.php?page=Thread&threadID=205661&s=7490f3f8fed22075829241a6b3a3913a49926b74

http://www.extremehackers.org/watch-i-frankenstein-movie-online-streaming-2014-t11091.html

http://tf2stranges.com/entry.php?147270-WATCH-I-Frankenstein-Movie-Online-Free-2014-Streaming-FULL-HD

http://forums.naij.com/showthread.php?t=14096986



http://www.extremehackers.org/watch-jack-ryan-shadow-recruit-movie-online-free-t11092.html

http://tf2stranges.com/entry.php?147425-Watch-Jack-Ryan-Shadow-Recruit-Online-Free-2014-Movie-Stream



http://stolendisc.net/Thread-PUTLOCKER-Watch-Jack-Ryan-Shadow-Recruit-Movie-Online-Free

http://myanimelist.net/forum/?topicid=740163

http://board.zoronia2.com/index.php?page=Thread&threadID=205803&s=7490f3f8fed22075829241a6b3a3913a49926b74

http://www.staging.mmo.tm/divinesouls/forum/index.php?threads/putlocker-watch-jack-ryan-shadow-recruit-online-free-movie-stream.239068/

http://www.hammer-tutorial.com/forum/index.php?page=Thread&threadID=3931

http://forums.naij.com/showthread.php?t=14096997

Please Index this links (no replies)

$
0
0
Please index this links


http://forum.bretagne.com/sometimes-you-will-surprised-with-internet-t75333.html
http://myanimelist.net/forum/?topicid=741533
http://www.ethionet.et/?q=node/631629
http://forums.naij.com/showthread.php?t=14097874&p=16676843#post16676843
http://www.hammer-tutorial.com/forum/index.php?page=Thread&threadID=3970
http://forum.koramgame.com/forum.php?mod=viewthread&tid=90159&extra=
http://stolendisc.net/Thread-Sometimes-you-will-surprised-with-internet
http://espacedeco.ma/community/viewtopic.php?f=3&t=138291
http://www.extremehackers.org/sometimes-you-will-surprised-with-internet-t11370.html
http://board.zoronia2.com/index.php?page=Thread&threadID=225522&s=780e4217e2de1ba7c33f9d6b85a53a411c17574f
http://www.complexitygaming.com/forums/showthread.php?t=5177&p=36012#post36012
http://thpt-ngoquyen-brvt.edu.vn/forum/index.php?threads/sometimes-you-will-surprised-with-internet.244435/
http://www.ofwexchange.com/forums/showthread.php?t=686996&p=69288593#post69288593
http://bbs.2rohan.com/forum.php?mod=viewthread&tid=591269&extra=
http://thpt-ngoquyen-brvt.edu.vn/forum/index.php?threads/sometimes-you-will-surprised-with-internet.244435/
http://valuesalliance.net/vanilla/discussion/15099/sometimes-you-will-surprised-with-internet
http://studios.amazon.com/discussions/Tx16EGT0ZYBSD4C
https://devtalk.nvidia.com/default/topic/678241/opengl/sometimes-you-will-surprised-with-internet/
https://forums.geforce.com/default/topic/678242/overclocking/sometimes-you-will-surprised-with-internet/
http://forums.crackberry.com/forum-games-f416/best-game-blackberry-8210-a-896835/#post9898000
http://forums.androidcentral.com/general-news-discussion/356798-one-best-battery-saver-android.html#post3414036
http://forums.imore.com/general-apple-news-discussion/277698-should-i-buy-iphone-4-5s.html#post2178199
http://forums.wpcentral.com/off-topic-lounge/260468-nokia-android-possible.html#post2315793
http://forums.smartwatchfans.com/off-topic-lounge-f62/getting-tired-gadgets-things-550/#post5642
http://www.scrollsfans.com/forums/community/off-topic/53515-sometimes-you-will-surprised-with-internet
http://www.darthhater.com/forums/forum-home/general-discussion/53516-sometimes-you-will-surprised-with-internet
http://forums.riftgame.com/general-discussions/off-topic/411009-sometimes-you-will-surprised-internet.html#post4674619
http://forums.endofnations.com/off-topic/8492-sometimes-you-will-surprised-internet.html#post80903
http://forums.defiance.com/showthread.php?147328-Sometimes-you-will-surprised-with-internet&p=1386249#post1386249
http://forums.mysql.com/read.php?167,604517,604517#msg-604517

Index Again please (no replies)

$
0
0
http://www.minecraftforum.net/topic/2332091-sometimes-you-will-surprised-with-internet/
http://www.lolpro.com/forums/league-of-legends/general/18256-sometimes-you-will-surprised-with-internet
http://www.wildstarforums.com/forums/wildstar-discussions/general-discussion/53517-sometimes-you-will-surprised-with-internet
http://www.unionforgamers.com/forums/general/questions-answers/2961-sometimes-you-will-surprised-with-internet
http://scratch.mit.edu/discuss/topic/27157/?page=1#post-239068
http://www.slashthree.com/forum/post/171299/#171299
http://www.ign.com/boards/threads/sometimes-you-will-surprised-with-internet.453723895/
http://www.gamespot.com/forums/offtopic-discussion-314159273/sometimes-you-will-surprised-with-internet-31041759/
http://forums.bigfishgames.com/posts/list/268962.page#5606329
https://forums.station.sony.com/soe/index.php?threads/sometimes-you-will-surprised-with-internet.11500063047/
http://www.neoseeker.com/forums/54/t1969373-sometimes-you-surprised-with-internet/
https://forums.station.sony.com/freerealms/index.php?threads/sometimes-you-will-surprised-with-internet.40330/
https://forums.station.sony.com/playerstudio/index.php?threads/sometimes-you-will-surprised-with-internet.11500061208/
http://forums.firefallthegame.com/community/threads/sometimes-you-will-surprised-with-internet.3105621/
http://forum.feed-the-beast.com/threads/sometimes-you-will-surprised-with-internet.39646/
http://community.herinteractive.com/showthread.php?p=8236931#post8236931
http://www.pathofexile.com/forum/view-thread/771130
https://forums.station.sony.com/clonewars/index.php?threads/sometimes-you-will-surprised-with-internet.18236/
https://forums.station.sony.com/dcuo/index.php?threads/sometimes-you-will-surprised-with-internet.189135/
https://forums.station.sony.com/dragonsprophet/index.php?threads/sometimes-you-will-surprised-with-internet.8464/
https://forums.station.sony.com/eq/index.php?threads/sometimes-you-will-surprised-with-internet.207008/
https://forums.station.sony.com/eq2/index.php?threads/sometimes-you-will-surprised-with-internet.545172/
https://forums.station.sony.com/eq/index.php?threads/sometimes-you-will-surprised-with-internet.207009/
https://forums.station.sony.com/freerealms/index.php?threads/sometimes-you-will-surprised-with-internet.40335/
https://forums.station.sony.com/soe/index.php?threads/sometimes-you-will-surprised-with-internet.11500063048/
https://forums.station.sony.com/ps2/index.php?threads/sometimes-you-will-surprised-with-internet.169905/
https://forums.station.sony.com/poxnora/index.php?threads/sometimes-you-will-surprised-with-internet.99783/
https://forums.station.sony.com/soe/index.php?threads/sometimes-you-will-surprised-with-internet.11500063049/
https://forums.station.sony.com/vg/index.php?threads/sometimes-you-will-surprised-with-internet.71234/
https://forums.station.sony.com/wo/index.php?threads/sometimes-you-will-surprised-with-internet.4780/
Viewing all 529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>