mysql - Connector/C++ compile error -


When I compile the code that contains the connector / C + header, I get the following errors:

C: \ qt \ 2010.03 \ mingw \ bin ../ lib / gcc / mingw32 / 4.4.0 /../../../../ contains / stdint.h: 27: Error: 'int8_t' is a previous announcement 'typedef four signed on int8_t'

c: \ qt \ 2010.03 \ mingw \ bin ../ lib / gcc / mingw32 / 4.4.0 /../ ../../ ./include/stdint.h:31: Error: The previous declaration in 'int32_t' is 'typedef int int32_t'

c: \ qt \ 2010.03 \ mingw \ bin ../ Lib / gcc / mingw32 /4.4.0/../../../include/stdint.h:32: Error: Last call in 'UIT 32_t' As a nickname, type -f unsigned int uint32_t '

Actually I do all this:

  #include & lt; Cppconn / driver.h & gt; # Include & lt; Cppconn / exception.h & gt; # Include & lt; Cppconn / resultset.h & gt; # Include & lt; Cppconn / statement.h & gt; # Include & lt; Cppconn / ready_statement.h>  

Now I can comment on lines by going to file which gives me errors:

  // typedef signed four int8_t; // typingf int int32_t; // typed unsigned UIT 32_T;  

It compiles, but when I try to run mysql code:

  sql :: driver * driver; Driver = get_driver_instance ();  

I get this output

test.exe removed from code -1073741515

Any ideas ?

The first thing I am trying to do is try to wrap up / offensive code in a try / catch, and if It should be seen that it is throwing an exception, which can get some information from you ...


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -