PHP 4.0 Bug #5045: Need to include iostream.h before php.h when compiling module with a c++ compil

From: Date: Wed, 14 Jun 2000 22:53:47 +0000
Subject: PHP 4.0 Bug #5045: Need to include iostream.h before php.h when compiling module with a c++ compil
Groups: php.dev 
Request: Send a blank email to php-dev+get-21358@lists.php.net to get a copy of this message
From: jjhuff@apptechsys.com Operating system: RedHat 6.2 PHP version: 4.0.0 Release PHP Bug Type: Compile Failure Bug description: Need to include iostream.h before php.h when compiling module with a c++ compil In building a dynamicaly loaded php module I needed to compile with g++. However, I was getting: In file included from /disk2/local/include/php/Zend/zend_globals.h:56, from /disk2/local/include/php/Zend/zend_list.h:25, from /disk2/local/include/php/Zend/zend_API.h:25, from /disk2/local/include/php/php.h:45, from test.cpp:1: /disk2/local/include/php/Zend/zend_compile.h:187: syntax error before `*' I found that if I #included'd iostream.h *before* I included php.h all was fine.

« previous php.dev (#21358) next »