Hi,

I guess I should introduce myself first: I'm Manfred Stienstra, I'm a
parttime web application programmer and parttime student Artificial
Intelligence.

I was asked by a teacher to create a php api for MonetDB [1], I started
working on that today, and I can't find out how to create a dynamic
loadable extension. The code I'm using is the standard code from
ext_skel.

I've tried this:

gcc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. -I ../..
-I../../Zend -I../../include -I../../main -I../../TSRM -c -o monet.o
monet.c
ld --export-dynamic -shared -L/usr/lib -o monet.so monet.o

but php gives this error:

Warning: dl(): Invalid library (maybe not a PHP library) 'monet.so' in
/var/www/tail.dwerg.net/htdocs/monet/index.php on line 3

Is there some way to use the php build structure to create dynamic
loadable extensions or does someone know how to fix this?

Manfred Stienstra

[1] http://monetdb.cwi.nl

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to