Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

C++ Connector throws 'bad_alloc' when connect gets called (1 reply)

$
0
0
Hello guys!
I just started with MySQL and the C++ Connector. After an hour of trying to install it and include it into my project I finally figured it out. But now Ive got a new problem: When I call 'driver->connect(...)' it returns a 'bad_alloc' and the program crashes. I found two threas on stackoverflow but they have no solution. I really dont know what to do next and the doc isnt really helpfull.

Version: 8.0.28
I included the 'jdbc' folder and added the 'lib64' lib-folder. In the project settings I added "asmysqlcppconn.lib" as additional dependency (im on a german machine so idk if its called that way).

Thanks for your help guys!

Viewing all articles
Browse latest Browse all 527

Trending Articles



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