The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: devilhorse on November 19, 2010, 07:05:13 PM

Title: external symbol _mysql_init@132
Post by: devilhorse on November 19, 2010, 07:05:13 PM

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
Title: Re: external symbol _mysql_init@132
Post by: donkey on November 19, 2010, 08:19:01 PM
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
Title: Re: external symbol _mysql_init@132
Post by: devilhorse on November 19, 2010, 08:48:28 PM
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.