|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - Call mysql failed
Hi, what happen to me when i compile it, prompt me this error message...
Error 42: Symbol Undefined _mysql_init 4
#include <stdio.h>
#include <mysql/mysql.h>
main(){
MYSQL *mysql;
mysql_init(&mysql);
}
Thank you.
Dec 13 2003
Well, I think you would have to include the MySQL library into your link phase. Probably more of an issue... You might have to recompile the MySQL library for Digital Mars C++. HTH mooncake wrote: Dec 13 2003
Hi, Would you mind to teach me how to include the MySQL library into my link phase? How to recompile the MySQL library? Thank you... In article <brf6v2$1dlq$1 digitaldaemon.com>, Jan Knepper says...Well, I think you would have to include the MySQL library into your link phase. Probably more of an issue... You might have to recompile the MySQL library for Digital Mars C++. HTH mooncake wrote: Dec 13 2003
Well, this requires some study if you have never done anything like it. Is the MySQL library you are using C or C++? If it is C you might be able to just add it to the project and link it. If it is C++ you more likely will have to recompile it. I think the sources to the MySQL client are freely available, so what you could do it research them and look for the existing project(s) / makefile(s) on how they build the .lib for specific compilers and build something like it for DMC++ HTH mooncake wrote:Hi, Would you mind to teach me how to include the MySQL library into my link phase? How to recompile the MySQL library? Thank you... In article <brf6v2$1dlq$1 digitaldaemon.com>, Jan Knepper says...Well, I think you would have to include the MySQL library into your link phase. Probably more of an issue... You might have to recompile the MySQL library for Digital Mars C++. HTH mooncake wrote: Dec 14 2003
|