# link error on win32

- Thread: https://externals.io/message/29086
- Original archive: https://news-web.php.net/php.internals/29086
- Started by Vedanta Barooah on 2007-04-28T11:13:40+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #29086 — Vedanta Barooah — 2007-04-28T11:13:40+00:00

URL: https://externals.io/message/29086#29086

hello all,
apologies, if it is a wrong place to ask such a question. i am trying to
compile php (5.1.0 and 5.2.1) on windows (xp sp2) with Visual Studio .Net
2005, Microsoft Platform SDK for Windows Server 2003 SP1 and the win32build
tools from php.net. i am getting similar errors with both the versions of
php. would be great if some one helps me with a clue.
thanks,
vedanta

error follows:...


        c:\program files\microsoft visual studio 8\vc\include\crtdbg.h(631)
: se
e previous definition of 'getcwd'
        rc /fo Debug_TS\php5ts_debug.dll.res /d FILE_DESCRIPTION="\"PHP
Script I
nterpreter\""  /d FILE_NAME="\"php5ts_debug.dll\"" /d PRODUCT_NAME="\"PHP
Script
 Interpreter\""  /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
   Creating library Debug_TS\php5ts_debug.lib and object
Debug_TS\php5ts_debug.e
xp
resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
__pctype r
eferenced in function _inet_aton
resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
___mb_cur_
max referenced in function _inet_aton
Debug_TS\php5ts_debug.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\l
ink.exe"' : return code '0x460'
Stop.
