Problem developing extension for PHP on Windows

From: Date: Thu, 26 Jul 2007 21:20:01 +0000
Subject: Problem developing extension for PHP on Windows
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47710@lists.php.net to get a copy of this message
Hello to all, I know this is probably different then most questions seeing as you are generally a UNIX group (or I would imagine at least). I am having a problem linking a library to an extension in windows, I keep getting undefined errors because I cannot find out how to actually link the DLL in my project's config.w32 file, and consequently in the final makefile. I have had an AWFUL time finding documentation for the windows side of this, which I realize is a small subset of PEAR developers, but does anyone have any recommendations on good resources for Win32 developers? My config.32 file is as follows: ARG_ENABLE("ipworks", "enable ipworks support", "yes"); if (PHP_IPWORKS != "no") { PHP_ADD_LIBRARY_WITH_PATH("ipworks6.lib","C:\Program Files\nsoftware\IPWorks V6 C++ Edition\lib",IPWORKS_SHARED_LIBADD) AC_DEFINE(HAVE_IPWORKSLIB,1,[ ]) PHP_NEW_EXTENSION("ipworks", "ipworks.c dns.c filemailer.c ftp.c htmlmailer.c http.c icmpport.c imap.c ipport.c ldap.c mcast.c mime.c mx.c netclock.c netcode.c nntp.c ping.c pop.c rcp.c rexec.c rshell.c rss.c smpp.c smtp.c snmpagent.c snmpmgr.c snpp.c soap.c syslog.c telnet.c tftp.c traceroute.c udpport.c webdav.c webform.c webupload.c whois.c xmlp.c xmpp.c") PHP_SUBST(IPWORKS_SHARED_LIBADD) } I have also tried changing ipworks6.lib to ipworks6.dll, with no luck. After I run it, I get a ton of unresolved external symbol errors. Any help would be greatly appreciated, I'm willing to take any ideas that anyone may have. Thanks a bunch! Tom Hearn Software Engineer N Software

« previous php.pear.dev (#47710) next »