[CONC-337] undefined reference to `mysql_init' Created: 2018-05-31 Updated: 2018-06-01 Resolved: 2018-06-01 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Juan Gonzalez | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | reference, undefined | ||
| Environment: |
ubuntu linux |
||
| Issue Links: |
|
||||||||
| Description |
|
how to compile and link the connector. I get a reference error #include <mysql.h> int main(int argc, char *argv[]) { MYSQL *mysql; const char *query; MYSQL_RES *result; mysql= mysql_init(NULL); }COMPILE: /tmp/cczVzenH.o: In function `main': |
| Comments |
| Comment by Georg Richter [ 2018-06-01 ] | |
|
Please check the output of
for correct linker options. | |
| Comment by Juan Gonzalez [ 2018-06-01 ] | |
|
this solve my problem. Saludos |