News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

external symbol _mysql_init@132

Started by devilhorse, November 19, 2010, 07:05:13 PM

Previous topic - Next topic

devilhorse


Get the following error when trying to build project even though I have libmysql.inc and libmysql.lib in the project. Any suggestions. I am using latest version of masm and latest version of EasyCode.

ERROR:
unresolved external symbol _mysql_init@132

donkey

The @132 is a bit suspect, on 32 bit builds it should be @4 since mysql_init only takes a single pointer as a parameter. Sounds to me like the import library libmysql.lib is the problem.

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

devilhorse

You are absolutely correct. I don't remember where I got the libmysql.lib I was using. Been on one of my backup CD's for quite some time. I solved the problem by downloading the Mysql Connector C API and simply copied the newer libMysql.lib from their folder and put it in the masm lib folder. EVERYTHING WORKS FINE NOW. THANKS.