Writing custom PHP extensions

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Tech-X
Forum Newbie
Posts: 3
Joined: Wed Jul 02, 2003 3:15 am
Contact:

Writing custom PHP extensions

Post by Tech-X »

I'm trying to compile my own PHP extension, but I'm running into an error:

I'm using MS VC++ 6.0 on Windows 98SE with PHP4.3.2. The only error I'm having is that strings.h doesn't exist:
Deleting intermediate files and output files for project 'ext_attempt - Win32 Release_TS'.
--------------------Configuration: ext_attempt - Win32 Release_TS--------------------
Compiling...
main.c
..\..\main\php_config.h(3) : warning C4005: 'ZEND_API' : macro redefinition
..\..\Zend\zend_config.w32.h(72) : see previous definition of 'ZEND_API'
..\..\main\php_config.h(4) : warning C4005: 'ZEND_DLEXPORT' : macro redefinition
..\..\Zend\zend_config.w32.h(75) : see previous definition of 'ZEND_DLEXPORT'
..\..\main\php_config.h(2502) : fatal error C1083: Cannot open include file: 'strings.h': No such file or directory
Error executing cl.exe.

ext_attempt.dll - 1 error(s), 2 warning(s)


Any help?
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Do you have the include dir's right?
Tech-X
Forum Newbie
Posts: 3
Joined: Wed Jul 02, 2003 3:15 am
Contact:

Post by Tech-X »

Yeah, and I got to looking, and I don't actually DONT have strings.h anywhere on my system.. is this s PHP specific header file? I thought it was supposed to be with all C compilers?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Tech-X
Forum Newbie
Posts: 3
Joined: Wed Jul 02, 2003 3:15 am
Contact:

Post by Tech-X »

Sami wrote:hmmm....
Awesome! I would have never thought about searching 1 billion+ web pages for the source file! :wink:
Aside from the obvious risks of downloading some random code out there, most of the header files I tried to get wouldn't work at all.

So, I just got rid of Windows and switched over to a real OS, RedHat. Fixed every problem heh.
Post Reply