Again my question about Building Libraries

From: Date: Thu, 28 Mar 2002 03:33:16 +0000
Subject: Again my question about Building Libraries
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-90459@lists.php.net to get a copy of this message
> Hi All, > > > This is my first participation in this group, so my question is I > write a function in c, but I need use this function and more joined in a > library make using the command ar rc alexlib.a x.o, but this procedure show > a error when I use this in my browser, please anyone can help me. > > thanks > > example > > file x.c > > int function addvalue ( int *a ) > { > *a = *a + 1; > return (a); > } > > > gcc -c x.c > ar rc alexlib.a x.o > > > php > > > <? > phpinclude ("alexlib.a"); > $a = 1; > $b = addvalue ( $a ); > print ( "Value = 4b "); > ?> > > > >

« previous php.general (#90459) next »