I get the errors Undefined Symbol: _mysql_init_mysql_close at compile time of C++ in XCode Macos. I am using mysql-8.0.27-macos11-x86_64 version of mysql.
Used the following Other Linker Flags :L/Applications/Digit02/Digit02/mysql-8.0.27-macos11-x86_64/lib
Other C++ Flags: -I/Applications/Digit02/Digit02/mysql-8.0.27-macos11-x86_64/include -I/Applications/Digit02/Digit02/mysql-8.0.27-macos11-x86_64/lib -I/Applications/Digit02/Digit02/mysql-8.0.27-macos11-x86_64/lib/plugin
Digit02 is the name of my project folder & project, I 've copied the mysql files into this folder.