Bug #655 | c-api using prepared statements fail to link | ||
---|---|---|---|
Submitted: | 14 Jun 2003 3:54 | Modified: | 17 Jun 2003 12:41 |
Reporter: | Sidney Kelly | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1alpha | OS: | Windows (windows xp pro) |
Assigned to: | Bugs System | CPU Architecture: | Any |
[14 Jun 2003 3:54]
Sidney Kelly
[14 Jun 2003 5:18]
MySQL Verification Team
You either have to include libmysql in the project and / or to set proper options for underlining.
[14 Jun 2003 5:46]
MySQL Verification Team
For to resolve the symbols missed please add the mysqlclient.lib for your project also in your sample: #include<my_global.h> #include<m_string.h> however I found that mysqlclient.lib has some symbols missed too. For to resolve the problem above, please download the source release, and compile yourself the mysqlclient.lib
[14 Jun 2003 18:41]
Sidney Kelly
Per suggestion I added: #include<my_global.h> #include<m_string.h>
[14 Jun 2003 18:56]
Sidney Kelly
I tried your suggestion I added: #include<my_global.h> #include<m_string.h> Also rebuilt mysqlclient.lib The problem of undefined symbols got worse, about 60 errors now. I don't see how I could be so far off the mark. Can you kindly confirm that you have 4.1.0 running on MS-windows platform using prepared statements?
[14 Jun 2003 20:00]
MySQL Verification Team
I compiled your sample. Also you need to set the code generation for example for debug version use debug multithreaded. When linking the mysqlclient.lib use the debug version for your debug version and the optimized one for the optimized project.
[17 Jun 2003 3:24]
Sidney Kelly
I've tried all suggestions so far. Still unresolved symbols. I noticed that the libmysql.def files in the 4.1alpha distribution indicate they are from version 4.0 not 4.1 Rebuilding libmysql does not seem to create new libmysql.def file. What is possibly going on?
[17 Jun 2003 4:45]
MySQL Verification Team
Well I compiled your example against the static library mysqclient.lib instead of libmysql.lib for to use the libmysql.dll. Then you have the option to link with the static library or rebuild libmysql.dll adding the missed functions to the libmysql.def file.
[17 Jun 2003 12:41]
Venu Anuganti
Thank you for your bug report. This issue has been fixed in the latest development tree for that product. You can find more information about accessing our development trees at http://www.mysql.com/doc/en/Installing_source_tree.html Hi !! Its all becuase of libmysql.def file is not updated for 4.1.0-alpha release. Looks like some how it got messed out and missed the updates on new APIs for first alpha release. But it got fixed long back in the 'BitKeeper' source. So, inorder to make things go smother, you need to get the letest source from 'BitKeeper'. For more information on how to build Windows source package from BitKeeper, please refer to 'INSTALL-WIN-SOURCE' from the mysql-4.1 bk clone tree. Thanks