From: Vetrov M. <mu...@ma...> - 2004-01-11 13:50:21
|
Hi, Got error "The procedure entry point mysql_init@4 could not be located in the dynamic link library libmySQL.dll" after starting test app. History: 1. created .def and .a files from libmySQL.dll (compiled with VC++50, __cdecl, 8-byte struct member alignment,multithreaded): pexports libmySQL.dll -o > libmySQL.def dlltool -def libmySQL.def -dllname libmySQL.dll --output-lib libmySQL.a 2. Got error about undef reference to the mysql_init@4 while compiling test app that called that function. I read mailing lists and then I tried different combinations of libmySQL.a location on the compile line without any success. 3. I read "Stdcall and DLL tools of MSVC and MinGW" article, but it says that function@n should go with __stdcall and not with __cdecl!!! However, I manually changed def file line from mysql_init @63 to mysql_init@4 @63 and recreated libmySQL.a. 4. Test app compiled sucessfully, but I got error "The procedure entry ..." (see the first line) when I ran it. I'll be glad to get any ideas what I have done wrong. Muxas |