On Wed, 30 Mar 2005 08:36:28 -0500, Dan Scott <[EMAIL PROTECTED]> wrote: > Try grabbing the latest CVS version of PHP or the latest 5.0.x > snapshots from http://snaps.php.net/ -- there were a number of patches > since 5.0.3 that helped me get further on my attempt to compile on > Windows using the Microsoft Visual C++ Toolkit 2003 (for C compiler) + > Platform SDK for Windows (for most of the required header files) + > Microsoft .NET SDK (for nmake). > > However, my build is now dying because it can't find winres.h :( > > Dan >
Okay, so I copied the Microsoft Platform SDK for Windows XP SP2\include\WinResrc.h to winres.h and that got the compile all the way to the linking point. But now it dies (so close!) with: Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol __pctype referenced in function _inet_aton resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol ___mb_cur_max referenced in function _inet_aton Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\ Vc7\bin\link.exe"' : return code '0x460' Reading http://www.zend.com/manual/install.windows.building.php suggests that to fix this problem I need to rebuild resolv.lib -- but using the bindlib.dsp file requires msdev, which requires a full MS Visual Studio environment. That's a showstopper for those of us trying to do this with just the free-beer tools available from Microsoft. However, it is apparently possible to export a DSP file as a Makefile from MS Visual Studio. If someone with a full MS Visual Studio environment would be willing to make that exported makefile available, I think it might help close this final loop and would be a worthwhile addition to the bindlib_w32.zip archive. Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php