Linking problem with extension written in C++

From: Date: Sat, 12 Apr 2003 12:57:58 +0000
Subject: Linking problem with extension written in C++
Groups: php.internals 
Request: Send a blank email to internals+get-874@lists.php.net to get a copy of this message
I have written an extension. Unfortunatelly I had to use some C++. After building I have some problems with 3 functions: zval_add_ref, REGISTER_LONG_CONSTANT, php_error_docref. If I include their body within my extension, it's Ok. Otherwise I got memory fault under PHP 4.3.0 and relocation error: /usr/lib/php/xerces.so: undefined symbol: _Z12zval_add_refPP12_zval_struct under 4.3.1. It has been built by gcc 3.2.2. Could anyone spend few minutes on it: http://ggodlewski.host.sk/download/php-xerces/php-xerces-0.1.tar.gz It requires xerces-c-2.2.0. Problematic places are marked by MEM_FAULT_HACK macro. Thanks, Grzegorz Godlewski

« previous php.internals (#874) next »