Re: not _that_ fixed....
| From: | Curt Zirzow | Date: | Wed, 27 Oct 2004 01:30:50 +0000 |
| Subject: | Re: not _that_ fixed.... | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200393@lists.php.net to get a copy of this message | ||
You can write your program in c++, checkout this pecl extension:
http://pecl.php.net/rar
You might want to join the pecl mailing list, there are more
developer eyes there that can answer questions about these things.
* Thus wrote Pierre Ancelot:
>
>
> in fact, i would code it in c++ but the used compiler is gcc... i tried to
> change the value CC in makefile but the lib obtained is invalid and is not
> working with php.... any idea on this ?
>
> Sorry to bother again :)
>
> On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> > * Thus wrote Robert Cummings:
> > > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > > in fact i got it in the ./configure --help :
> > > >
> > > > pierre@debian:~/phpsource/php-4.3.9$ ./configure --help | grep -i
> > > > spider --enable-spider Enable spider support
> > >
> > >...
> > >
> > > That said, if you still wish to compile a shared object module of your
> > > extension then you can run this from the PHP source directory (with
> > > suitable changes for your extension):
> > >
> > > cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> > > -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> > > -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
> > >
> > > cc -shared -L/usr/local/lib -rdynamic -o \
> > > ext/interjinn/interjinn.so \
> > > ext/interjinn/interjinn.o
> >
> > Actually it gets easier..
> >
> > cd ext/custommodule/
> > phpize
> > ./configure --with-custommodule
> > make
> >
> > Now you'll have a custommodule.so available.
> >
> >
> >
> > Curt
> > --
> > Quoth the Raven, "Nevermore."
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Curt
--
Quoth the Raven, "Nevermore."