Building Libraries

From: Date: Wed, 27 Mar 2002 01:43:14 +0000
Subject: Building Libraries
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90306@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 (#90306) next »