PHP extension with C++
| From: | Dave Viner | Date: | Wed, 19 Feb 2003 22:40:44 +0000 |
| Subject: | PHP extension with C++ | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-94371@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to compile a PHP extension that uses C+ on windows, and I keep
getting this error message:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(373) : error
C2491: 'endl' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(379) : error
C2491: 'endl' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(389) : error
C2491: 'ends' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(394) : error
C2491: 'ends' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(403) : error
C2491: 'flush' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(408) : error
C2491: 'flush' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(541) : error
C2491: 'ws' : definition of dllimport function not allowed
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(561) : error
C2491: 'ws' : definition of dllimport function not allowed
Has anyone seen this before, or know how to fix it?
thanks
dave