I have tried including the mysql.h to my project but cannot get the TartsBasic to compile.
The following error is presented when trying to compile:
TartsBasic.o: In function `mysql_connect()’:
TartsBasic.cpp:(.text+0x598): undefined reference to `mysql_init’
TartsBasic.cpp:(.text+0x5d0): undefined reference to `mysql_real_connect’
TartsBasic.cpp:(.text+0x5f8): undefined reference to `mysql_error’
TartsBasic.o: In function `mysql_disconnect()’:
TartsBasic.cpp:(.text+0x638): undefined reference to `mysql_close’
I am trying to add mysql_config --cflagsmysql_config --libs and simply compiling the TartsBasic.cpp but cannot get any success.
Once I can get it to simply compile I will add more functions to store my data.
I am not sure what I did different but i have MySQL working on my PI 3 and write the sensor data to a sql log table with no problems.
My includes are