unresolved external symbol _mysql_get_client_info@0
Posted by: Dale Cordeiro
Date: February 12, 2013 01:33PM

I'm using visual studio 2010, trying the very simple first C tutorial:
#include "my_global.h"
#include "mysql.h"

int main(int argc, char **argv)
{
printf("MySQL client version: %s\n", mysql_get_client_info());
}
I'm including libmysql.lib in the linker input, and I can ensure that the linker is reading that file, because if I rename it it tells me it can't find it. However it does not link because of this error:
MySQLTest.obj : error LNK2019: unresolved external symbol _mysql_get_client_info@0 referenced in function _main

I hope that someone can give me a clue of where to fix this problem. Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
unresolved external symbol _mysql_get_client_info@0
3203
February 12, 2013 01:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.