Win32 Build of php_mysql

php.internals

Terry R. Lacey

21 years ago
I get these errors. I'm assuming there's version issues between the include and lib files in win32build.zip and the current source code in php_mysql.c Sorry... Here's the errors - Version 5.0.4: Build Log --------------------Configuration: mysql - Win32 Release_TS-------------------- Command Lines Creating temporary file "C:\DOCUME~1\Owner\LOCALS~1\Temp\RSPA33.tmp" with contents [ /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\..\MySQL\include" /I "..\..\TSRM" /D "NDEBUG" /D ZEND_DEBUG=0 /D "ZTS" /D "MYSQL_EXPORTS" /D "COMPILE_DL_MYSQL" /D HAVE_MYSQL=1 /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "ZEND_WIN32" /D "PHP_WIN32" /FR"Release_TS/" /Fp"Release_TS/mysql.pch" /YX /Fo"Release_TS/" /Fd"Release_TS/" /FD /c "C:\PHP\php-5.0.4\ext\mysql\php_mysql.c" ] Creating command line "cl.exe @C:\DOCUME~1\Owner\LOCALS~1\Temp\RSPA33.tmp" Creating temporary file "C:\DOCUME~1\Owner\LOCALS~1\Temp\RSPA34.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libmySQL.lib php5ts.lib /nologo /dll /incremental:no /pdb:"Release_TS/php_mysql.pdb" /machine:I386 /out:"..\..\Release_TS/php_mysql.dll" /implib:"Release_TS/php_mysql.lib" /libpath:"..\..\..\MySQL\lib\opt" /libpath:"..\..\Release_TS" /libpath:"..\..\Release_TS_Inline" ".\Release_TS\php_mysql.obj" ] Creating command line "link.exe @C:\DOCUME~1\Owner\LOCALS~1\Temp\RSPA34.tmp" Output Window Compiling... php_mysql.c C:\PHP\php-5.0.4\ext\mysql\php_mysql.c(1128) : warning C4013: 'mysql_character_set_name' undefined; assuming extern returning int C:\PHP\php-5.0.4\ext\mysql\php_mysql.c(1715) : warning C4013: 'mysql_real_escape_string' undefined; assuming extern returning int Linking... Creating library Release_TS/php_mysql.lib and object Release_TS/php_mysql.exp php_mysql.obj : error LNK2001: unresolved external symbol _mysql_character_set_name php_mysql.obj : error LNK2001: unresolved external symbol _mysql_real_escape_string ..\..\Release_TS/php_mysql.dll : fatal error LNK1120: 2 unresolved externals Error executing link.exe. Creating command line "bscmake.exe /nologo /o"Release_TS/mysql.bsc" ".\Release_TS\php_mysql.sbr"" Creating browse info file... Output Window Results php_mysql.dll - 3 error(s), 2 warning(s)