When I compile code that includes Connector/C++ headers, I get the following errors:
c:\qt\2010.03\mingw\bin../lib/gcc/mingw32/4.4.0/../../../../include/stdint.h:27: error: 'int8_t' has a previous declaration as 'typedef signed char int8_t'
c:\qt\2010.03\mingw\bin../lib/gcc/mingw32/4.4.0/../../../../include/stdint.h:31: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
c:\qt\2010.03\mingw\bin../lib/gcc/mingw32/4.4.0/../../../../include/stdint.h:32: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
Literally all I do is this:
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
Now I can go into the file and comment the lines out that give me errors:
//typedef signed char int8_t;
//typedef int int32_t;
//typedef unsigned uint32_t;
It compiles, but when I try to run the mysql code:
sql::Driver *driver;
driver = get_driver_instance();
I get this output
test.exe exited with code -1073741515
Any Ideas?
<>
around your includes? – Brendan Long