RE: [PHP-WIN] Creating modules for PHP4/Win32

From: Date: Thu, 04 Jan 2001 13:58:40 +0000
Subject: RE: [PHP-WIN] Creating modules for PHP4/Win32
Groups: php.windows 
Request: Send a blank email to php-windows+get-4801@lists.php.net to get a copy of this message
>Hi! > >I need to create a new module/extension for use with PHP4 in a Win32 >environment, but I can't find any information about this. All information >that I can find is for Unix. Anoboy knows where can I find information >about this ? > >I'm trying to use the supplied modules with the PHP4 source >code, but I'm getting some errors when I try to compile it: > >d:\archivos de programa\microsoft visual studio\vc98\include\ios.h(258) : >error C2491: 'dec' : definition of dllimport function not allowed >d:\archivos de programa\microsoft visual >studio\vc98\include\ios.h(259) : >error C2491: 'hex' : definition of dllimport function not allowed >d:\archivos de programa\microsoft visual >studio\vc98\include\ios.h(260) : >error C2491: 'oct' : definition of dllimport function not allowed >d:\archivos de programa\microsoft visual >studio\vc98\include\istream.h(175) >: error C2491: 'ws' : definition of dllimport function not allowed >e:\php-4.0.4\ext\standard\php_string.h(115) : error C2440: '=' >: cannot >convert from 'void *' to 'char *' > Conversion from 'void*' to pointer to non-'void' requires an >explicit cast > > Well, the errors you got is generated for ex. in this class: class _CRTIMP streambuf; class _CRTIMP ostream; public: [...] enum { skipws = 0x0001, left = 0x0002, right = 0x0004, internal = 0x0008, dec = 0x0010, generated here ^^^^ oct = 0x0020, and here ^^^^ hex = 0x0040, and here ^^^^ showbase = 0x0080, showpoint = 0x0100, uppercase = 0x0200, showpos = 0x0400, scientific = 0x0800, fixed = 0x1000, unitbuf = 0x2000, stdio = 0x4000 }; Do you truly believe in your heart that the standard header include files would contain errors that would trigger the C++ parser? I don't think so... look for a missing brace or semicolons in your own code first.... >The last error is an error in the PHP include headers! Well, when you gets compiler errors like above, just ignore the trailing errors in php_string.h until you resolved the first occurrences (probably that error will disappear when you resolved the other once...) >I'm using Visual C++ 6 (SP4) in a Windows 2000 Professional >environment. > >Any ideas ? >Thanks!

« previous php.windows (#4801) next »