modules in c++

From: Date: Wed, 05 Mar 2003 19:38:33 +0000
Subject: modules in c++
Groups: php.dev 
Request: Send a blank email to php-dev+get-94808@lists.php.net to get a copy of this message
Hi, I've been trying use C++ within a PHP extension with help by document in http://www.tutorbuddy.com/software/phpcpp/phpcpp/. The instructions works fine but I have problems with linking objects. The script libtool links objects with gcc and not with g++ and the moment of creation of the dinamic library .so gcc is used and not g++. See: /bin/sh /root/biac_php/teste/libtool --mode=link gcc -I. ^^^^^^^^^^^^^^^ -I/root/biac_php/teste/ -I/root/biac_php/teste/main -I/root/biac_php/teste -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -DHAVE_CONFIG_H -g -O2 -o teste.la -avoid-version -module -rpath /root/biac_php/teste/modules teste.lo gcc -shared teste.lo -Wl,-soname -Wl,teste.so -o .libs/teste.so ^^^^^^^^^^^ Thanks, Michel M. dos Santos

« previous php.dev (#94808) next »