logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Can't compile an extension without tweaking headers: msg#00057

Subject: Can't compile an extension without tweaking headers
Hi,

When I started working on my extension (WinBinder, see URL below), I tried to include php.h "as is" but I always got several compiler errors. (I use lcc-win32 as the compiler, mainly because it's very fast.) After a lot of tweaking on some .h files (from version 4.3.4), I finally was able to compile php_winbinder.dll without errors. Since then I'm using those altered files, however, this is not practical because I can't easily update the headers to a newer version. The header files are at http://winbinder.sourceforge.net/files/tweaked_headers_4.zip in case you want to look at them.

I've also tested MinGW and Pelles C, and I discovered that: 1) I also must use the tweaked headers with them; and 2) the DLLs they produce won't work. However, Rick was able to build WinBinder on MS Visual Studio, which seems to be kind of the "official" compiler for PHP under Windows.

Is there a "magic" tweak (say on config.w32.h) or a special set of headers to compile an extension for PHP?

Thanks in advance for any clues.

-------------------
Rubem Pechansky

WinBinder - The native Windows binding for PHP
http://winbinder.sourceforge.net/
winbinder-discussion@xxxxxxxxxxxxxxxxxxxxx

Hypervisual - Advanced Design for IT
http://hypervisual.com/



<Prev in Thread] Current Thread [Next in Thread>