Re: link with C++ library
| From: | Yann Le Yhuelic | Date: | Wed, 06 Sep 2000 08:36:36 +0000 |
| Subject: | Re: link with C++ library | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15466@lists.php.net to get a copy of this message | ||
hi
I knew that C++ library needed a C wrapper written around it...
But, even if I did it, I've got some links problems.
And I only get this problem if the program is loaded with Apache.
With a C program (main.c), I don't have any problems.
Yann le Yhuelic
Richard Lynch wrote:
> In article <39B4D9BC.7D05F07D@isr.thomson-csf.com>,
> yann.leyhuelic@isr.thomson-csf.com (Yann Le Yhuelic) wrote:
>
> > Hi,
> >
> > I've got a problem with dynamic link library.
> > I'm using PHP 4.0.2 on FreeBSD 4.1
> > I' ve got the following files
> >
> > test.cc
> > test.h ----> libtest.so
> >
> >
> > php_test.c
> > php_test.h ----> libphptest.so
> >
> > When I'm trying to call functions of test.cc in php_test.c, I've got the
> > following message
> > /usr/lib/libstdc++.so.3 Undefined symbol "__ti9exception"
> > It looks like a C++ problem with PHP.
>
> Last I heard, PHP only grokked C-style libraries, so a C++ library needed
> a C wrapper written around it...
>
> However, there's a lot of new stuff in PHP for dynamic library loading,
> and I could now be a dinosaur.
> --
> Richard Lynch | If this was worth $$$ to you, buy a CD
> US Customer Support Director | from one of the artists listed here:
> Zend Technologies USA | http://www.L-I-E.com/artists.htm
> http://www.zend.com | (this has nothing to do with
> Zend, duh!)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net