Bug #2611: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h
| From: | anand_palaniswamy at onebox dot com | Date: | Tue, 26 Oct 1999 21:44:42 +0000 |
| Subject: | Bug #2611: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11930@lists.php.net to get a copy of this message | ||
From: anand_palaniswamy@onebox.com
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.