Page 1 of 1
How to compile the libmysqld.dll from the source code?
Posted: 21.04.2007, 17:05
by Anton7
I have problems with the embedded mysql server, the some stored procedures does not executing. But this stored procedures executing normally on simple mysql-server. I want to try to compile libmysqld.dll from a new source code. How i can do this with "microsoft visual studio 2005"?
p.s. Sorry if offtopic
Posted: 22.04.2007, 14:35
by Anton7
Today i try to compile libmysqld.dll with "microsoft visual studio 2003", but have error:
Code: Select all
\mysql-5\sql-common\client.c(1786) : error C2373: 'cli_mysql_real_connect' : redefinition; different type modifiers
../libmysqld\client_settings.h(46) : see declaration of 'cli_mysql_real_connect'
Posted: 23.04.2007, 07:30
by klchin
Hi,
Do a search for 'cli_mysql_real_connect' and change the value.
Regards,
KL Chin
Posted: 23.04.2007, 07:39
by klchin
Hi,
Do a search for 'cli_mysql_real_connect' and change the value.
Regards,
KL Chin
hi
Posted: 16.07.2008, 16:35
by sridhar20
Hi Friends,
Am using the delphi7.0 with MYSQL Server5.0 using Zeos library components,so when i try to compile the code i m getting an exception as : none of the dynamic libraries can be found: mysql5.0.dll, libmysql.dll .
So, can anybody help me out or give me a suggestion in solving my issue soon.
Expecting a prompt reply from u all friends.
Regards
Sri
Posted: 16.07.2008, 22:14
by mdaems
Hi Sri,
I suppose the problem comes when you start running the program in the debugger. This is not a compiler error. I think (but I may be wrong) the libmysql.dll file is not in the search path of your application. Most safe location is in the same directory as the executable you build. Otherwise windows/system32 should do nice as well.
Mark
Posted: 24.07.2008, 10:12
by tonci
Hi all.
I am puzzled as of true nature of the problem reported, there is just not enough info provided. However, here's what you need to do to compile embedded server:
o) Use at least MySQL 5.1! 5.0 has no embedded server.
o) Add --with-embedded-server to your configure line
There still might be some problems compiling, usually due to broken dependencies, but that should be fairly easy to fix. Check build configuration used in VS too.
As for library not found, there can be several reasons for this. First, and most obvious, is that library names do not match. Rename libmysql.dll to what ever suits you. Next, there is a built-in search path for libmysql.dll, you can check it from mysql cl client.