From: Mark Dawson-B. <Ma...@zy...> - 2014-01-02 16:11:08
|
Hi William, I'm only using one of the existing example .c/.i file combinations for testing at the moment, so there will be no problem at all in providing it as a Visual Studio example once I've got it working. I've hit the further complication that the PHP setup on the server is 64-bit so I couldn't verify that my first attempt actually worked! I'm now getting close to being able to test a 64-bit version. All the best, Mark -----Original Message----- From: William Fulton [mailto:wi...@fu...] On Behalf Of William S Fulton Sent: 31 December 2013 14:18 To: Mark Dawson-Butterworth Cc: swi...@li... Subject: Re: [Swig-user] PHP and SWIG with Visual Studio 2010 If you have some spare time, it would be helpful if you put together a visual studio project as a patch for other PHP users. The examples in the Examples/php directory could do with some .dsp or a .vcproj files like most of the other target languages. William On 20/12/13 18:02, Mark Dawson-Butterworth wrote: > Not sure if this got posted correctly in the first place but I've > answered my own question. > > The problem was that ZEND_DEBUG was not turned off, and ZEND_WIN32 was > not set. > > These pre-processor definitions are all required: > > ZEND_DEBUG=0 > > ZEND_WIN32 > > PHP_WIN32 > > *From:*Mark Dawson-Butterworth > *Sent:* 20 December 2013 12:05 > *To:* swi...@li... > *Subject:* PHP and SWIG with Visual Studio 2010 > > Hi Folks, > > I am trying to set up an environment where I can build SWIG > wrappers to allow my C code to be called from PHP. It would appear > that this is much more straightforward with UNIX/Linux than with Windows! > Unfortunately, I have to use Windows. > > As there is no "devel" package, I have built PHP from source in > order to create the headers that SWIG uses. So, I can now compile my > code using Visual Studio. However, I've fallen at the next hurdle. > > I will be most grateful if someone would please advise how I can > get/create the library file to link to so that the PHP zend functions > don't all appear as unresolved externals. I thought it would simply be > a matter of downloading the Windows PHP binary and using php5.lib from > that, but it doesn't seem to have the right functions in it. > > All the best, > > Mark > > ---------------------------------------------------------------------- > -- This e-mail and any attachments may contain confidential > information. If you believe it has been sent to you in error, please > alert the sender immediately by reply e-mail and then delete it, > including any attachments. Any disclosure, copying, distribution, or > other use of this e-mail, its content or attachments by anyone other > than an intended recipient is prohibited. Any views or opinions > expressed are the author's and do not necessarily represent those of > Zytek Automotive. > > Registered Office: Zytek Automotive Limited, Lancaster Road, Fradley > Park, LICHFIELD WS13 8RY, UK Registered in England with the company > number 3125253 > > > > ---------------------------------------------------------------------- > -------- Rapidly troubleshoot problems before they affect your > business. Most IT organizations don't have a clear picture of how > application performance affects their revenue. With AppDynamics, you > get 100% visibility into your Java,.NET, & PHP application. Start your > 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.c > lktrk > > > > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > ________________________________ This e-mail and any attachments may contain confidential information. If you believe it has been sent to you in error, please alert the sender immediately by reply e-mail and then delete it, including any attachments. Any disclosure, copying, distribution, or other use of this e-mail, its content or attachments by anyone other than an intended recipient is prohibited. Any views or opinions expressed are the author's and do not necessarily represent those of Zytek Automotive. Registered Office: Zytek Automotive Limited, Lancaster Road, Fradley Park, LICHFIELD WS13 8RY, UK Registered in England with the company number 3125253 |