Subject: | Link unresolved external symbol __dosmaperr Visual Studio 2003 |
Originally reported by Godofredo Miguel Solorzano at
http://bugs.mysql.com/bug.php?id=37583
Description:
Compiling the package: DBD-mysql-4.007.tar.gz and creating the makefile
with:
perl.exe Makefile.PL --cflags="-I C:/DBS/mysql-5.0/include" --libs="-L
C:/DBS/mysql-5.0/libmysql/release -lmysqlclient -lz -lm -lcrypt -lnsl"
got the below link error:
Creating library blib\arch\auto\DBD\mysql\mysql.lib and object
blib\arch\auto\DBD\mysql\mysql.exp
qlclient.lib(my_open.obj) : error LNK2019: unresolved external symbol
__dosmaperr referenced in function _my_sopen
b\arch\auto\DBD\mysql\mysql.dll : fatal error LNK1120: 1 unresolved
externals
KE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x1'
This link problem *only* happens when compiling the DBD::mysql with the
compiler VS2003 and not happens with compiler VS2005.
The Makefile was generated with the below command:
perl.exe Makefile.PL --cflags="-I C:/dbs/mysql-5.0/include" --libs="-L
C:/dbs/mysql-5.0/libmysql/release -lmysqlclient -lz -lm -lcrypt -lnsl"
So this could be a compiler bug and not a mysqlclient.lib bug.
For additional details see original bug report.