Advertisement:

Author Topic: Code::Blocks 17.12 and MySql 8.0  (Read 1604 times)

Offline JWPL

  • Newbie
  • *
  • Posts: 1
Code::Blocks 17.12 and MySql 8.0
« on: May 11, 2018, 05:16:15 PM »
I have to write small program in C++ which connects with data in MySql.

My environment:
Windows 10
MySql 8.0
Connector C++ 1.1.9 (32 bit)
Code::Blocks 17.12 (32 bit) (for C++)

Program:

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

main()
{
  sql::Driver *driver;

driver = get_driver_instance();
}
Compiler returns error:
“undefined reference to `_imp__get_driver_instance'|”

Please help.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,140
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Code::Blocks 17.12 and MySql 8.0
« Reply #1 on: May 11, 2018, 08:45:45 PM »
I would try a c++ forum

I have used https://www.microolap.com/products/connectivity/mysqldac/ in C++ Builder works well for me.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro