[PHP-DEV] Bug #2611: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h From: anand_palaniswamy <email protected>
Date: 10/26/99

From: anand_palaniswamy <email protected>
Operating system: SunOS 5.6
PHP version: 3.0.10
PHP Bug Type: Compile Failure
Bug description: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h

Can't include:

        #include <string>

in php/functions/foo.cc because <string> in libstdc++ distributed with
gcc-2.95.1 includes an alloc.h. Since php distribution includes an
alloc.h, and compiling foo.cc required -Iphp in the compile command
line <string> ends up including php's alloc.h. Which gets it awfully
confused about the class alloc.

One solution would be to rename alloc.h to phpalloc.h. Otherwise
writing php functions in C++ involves solving a minor inconvenience.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>