Linker error LNK2019: unresolved external symbol
Posted by: Martin Grasser
Date: May 02, 2011 01:07PM

I want to use the mysql c api.
Im using VS 2005. Im trying to use some very basic mysql functions.
Ive added "#include <mysql.h>" and Ive tried to set the path to the mysql include and lib directory.
But Im now getting some errors, like "error LNK2019: unresolved external symbol"

In german:
1>user.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_mysql_close@4" in Funktion ""double __cdecl save_old_opponent_to_db(void)" (?save_old_opponent_to_db@@YANXZ)".

Any idea how to solve this linker errors??

Edit: Ive solved the problem as described in this thread:,68084,68093#msg-68093

It seems I just did forgot to use the "" symbol for my file path in the linker dependecies.

Edited 2 time(s). Last edit at 05/02/2011 01:21PM by Martin Grasser.

Options: ReplyQuote

Written By
Linker error LNK2019: unresolved external symbol
May 02, 2011 01:07PM

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.