Linking mariadb-connector-c to main component

estissy
Posts: 1
Joined: Sat Jul 13, 2019 1:42 pm

Linking mariadb-connector-c to main component

Postby estissy » Sat Jul 13, 2019 1:54 pm

Hi i want to use ESP32 with some mysql connector.
I am using esp-idf.
I downloaded source directory of mariadb-connector-c directly from github and placed it in "components" directory in my esp-idf sample project folder.
Header files are loaded correctly by main component.
At "build" directory "mariadb-connector-c" directory is created after "make app" command.
It contains "libmariadb-connector-c.a" file.

But i think problem is with linking this lib with main component.
If I want to use sample function I get: (.literal.app_main+0x24): undefined reference to `mysql_get_client_info'

I am new in gcc world, linking and compilation. Have I use any flags in project "Makefile" or component "component.mk" files?

Who is online

Users browsing this forum: No registered users and 124 guests