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:
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,
Registered Office: Zytek Automotive Limited, Lancaster Road, Fradley Park, LICHFIELD WS13 8RY, UK
Registered in England with the company number 3125253