Bug #14205 mysql cannot be compiled by VC6
Submitted: 21 Oct 2005 10:06 Modified: 29 Sep 2008 22:15
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.1.15 OS:Windows (Windows 2003)
Assigned to: CPU Architecture:Any

[21 Oct 2005 10:06] [ name withheld ]
Description:
Compilation stops saying there is undefined symbol _my_cgets in mysql.obj

How to repeat:
Select any configuration including mysql client and choose "build"

Suggested fix:
mysys.lib is missing in linker command line - just add it in configuration file
[21 Oct 2005 12:37] MySQL Verification Team
Thank you for the bug report.
I compiled the source release with compiler VS 2003 and not found any
problems since it links against mysys library. It is the recommended compiler:

Build log was saved at "file://e:\srct\mysql-4.1.15\client\release\BuildLog.htm"
mysql - 0 error(s), 0 warning(s)

Since still exists in our source the *dsw project, then I tested with VC6
and actually I got the behavior reported:

Linking...
mysql.obj : error LNK2001: unresolved external symbol _my_cgets
../client_release/mysql.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

mysql.exe - 2 error(s), 0 warning(s)

The today workaround is to add the below file to mysql project:

E:\srct\mysql-4.1.15\mysys\my_conio.c

Compiling...
my_conio.c
Linking...

mysql.exe - 0 error(s), 0 warning(s)
[29 Sep 2008 22:17] Konstantin Osipov
We don't support compiling with VC6.
Please use a newer compiler.
Thank you for your interest in MySQL.