Bug #8906 | Linker error under MinGW | ||
---|---|---|---|
Submitted: | 2 Mar 2005 21:33 | Modified: | 21 Mar 2005 11:54 |
Reporter: | Nils Durner | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 4.1 | OS: | Windows (Windows) |
Assigned to: | Petr Chardin | CPU Architecture: | Any |
[2 Mar 2005 21:33]
Nils Durner
[2 Mar 2005 21:33]
Nils Durner
Patch
Attachment: mysql_def03.diff (text/x-patch), 2.30 KiB.
[3 Mar 2005 18:03]
Nils Durner
The dlltool options are wrong, sorry. It has to be: --- dlltool --input-def ../include/libmySQL.def --dllname libmySQL.dll --output-lib libmysqlclient.a -k ---
[21 Mar 2005 11:54]
Petr Chardin
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: The MinGW's linker error you've referred are not specific to MySQL. According to MinGW documentation, one needs to perform the following steps to create an import library: 1) Use one of the tools distributed with MinGW to generate a DEF file from appropriate dll to create an import library later. These tools are reipm and pexports. The latter one might require additional parameters. 2) Create an import library with dlltool from generated DEF file The DEF file distributed with MySQL Server is not intended to be used for MinGW import library creation. It is provided for information purposes only. Moreover, it might be removed from future binary releases. Please refer to http://www.mingw.org/mingwfaq.shtml#faq-msvcdll and http://www.mingw.org/docs.shtml#compilingandbuilding
[18 Dec 2006 17:31]
Jose Luis Franzen
Add these lines to patch: + mysql_errno@4 + mysql_insert_id@4 Jose Luis Franzen