On 9 Aug 2009, at 22:52, Farley Knight wrote:
On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggar
wrote:
Hi Thomas,
On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch wrote:
gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main -
I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall
On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggar wrote:
> Hi Thomas,
>
> On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch wrote:
>> gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main -
>> I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o
>> worker.o worker.c
>> gcc -L/usr
Hi Thomas,
On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch wrote:
> gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main -
> I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o
> worker.o worker.c
> gcc -L/usr/local/lib -lphp5 -o worker worker.o
> worker.o: In function
Excerpts from Thomas Koch's message of Mon Jul 13 16:15:10 -0400 2009:
> worker.o: In function `main':
> /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to
> `php_embed_init'
> /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to
> `php_embed_shutdown'
> collect2
Sorry for being a C newby. Could you please help me? I try to follow Sarah's
extending PHP book and fail to use the embeded PHP sapi:
I compile PHP5.3:
./configure --enable-embed
have a c "program":
#include
int main(int argc, char *argv[])
{
PHP_EMBED_START_BLOCK(argc,argv)
PHP_EMB