I'm trying to use the mysql.h library to connect to my database using c++. I included the library in the additional libraries proprierty, however, when I'm trying to run the program, I get the following error:
Error LNK2019 unresolved external symbol _mysql_init@4 referenced in function "private: static bool __cdecl AlarmHandler::pushAlarmToActiveAlarmDB(class std::shared_ptr)" (?pushAlarmToActiveAlarmDB@AlarmHandler@@CA_NV?$shared_ptr@VAlarm@@@std@@@Z) Proiect Colectiv C:\Users\docto\source\repos\Proiect Colectiv\Proiect Colectiv\AlarmHandler.obj 1
For some reason, it might not be building the included library? If so, how can I fix that? Thanks!