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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to