modules in c++

[email protected] ("Michel M. dos Santos")
Newsgroups php.dev
Message-ID <[email protected]>

	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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.