#21292 [Csd]: curl extension fails to compile

From: Date: Mon, 30 Dec 2002 23:24:33 +0000
Subject: #21292 [Csd]: curl extension fails to compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28801@lists.php.net to get a copy of this message
ID: 21292 User updated by: madhon@madhon.co.uk Reported By: madhon@madhon.co.uk Status: Closed Bug Type: Compile Failure Operating System: windows PHP Version: 4.3.0 Assigned To: edink New Comment: that didnt solve it however i tried adding msvcrt.lib into the link list for the the php extension and it then worked Previous Comments: ------------------------------------------------------------------------ [2002-12-30 13:43:56] edink@php.net When compiling libcurl you need to link it against msvcrt.lib in addition to other libraries specified in Makefile.vc6. Find: LINKLIBS = ws2_32.lib winmm.lib Change to: LINKLIBS = ws2_32.lib winmm.lib msvcrt.lib And compile release or release-ssl target. ------------------------------------------------------------------------ [2002-12-30 09:43:55] madhon@madhon.co.uk using curl 7.10.2 compiled on the machine and i get this compiled both using vc6 Linking... Creating library Release_TS/php_curl.lib and object Release_TS/php_curl.exp curl.obj : error LNK2001: unresolved external symbol __imp__fwrite curl.obj : error LNK2001: unresolved external symbol __imp__realloc curl.obj : error LNK2001: unresolved external symbol __imp__fread curl.obj : error LNK2001: unresolved external symbol __imp__free curl.obj : error LNK2001: unresolved external symbol __fltused LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 ..\..\Release_TS/php_curl.dll : fatal error LNK1120: 6 unresolved externals Error executing link.exe. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21292&edit=1

« previous php.bugs (#28801) next »