C++ module and Zend C headers
| From: | Eric Callier | Date: | Mon, 05 Feb 2001 18:17:33 +0000 |
| Subject: | C++ module and Zend C headers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45793@lists.php.net to get a copy of this message | ||
Hello,
I'm new to php-dev.
I noticed that compile cpp files raise some difficulties:
All functions declared in the Zend/zen_API.h files aren't declare as extern
"C", so gcc raise errro at link time when you try use these functions :
error like: undefined function _array_init(...) etc.
Everything work fine when you add BEGIN_EXTERN_C() / END_EXTERN_C() macros
in zend_API.h.
If someone can modify this header in the cvs, I think that C++ developpers
will be please :-)
N.B: I use php4.0.3pl1/linux
Eric CALLIER - Information Systems
Elf Trading SA
World Trade Center 1 Tel: +41-22-710-12-77
Case postale 276 Fax: +41-22-710-18-58
CH-1215 Geneva 15 Telex: 415 535 ets ch
Switzerland Email: eric.callier@elftrading.com