Load a C library into extension?
| From: | N Deepak | Date: | Thu, 24 Feb 2005 09:21:09 +0000 |
| Subject: | Load a C library into extension? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-209324@lists.php.net to get a copy of this message | ||
Hi all,
I have no doubt posted many queries here in the past few days, and am
thankful for all the help I have received. :)
I have been able to write a helloworld extension and compile it. The
next step is to call a function in a library libfoo.so. I think
this needs a modification in config.m4.
Any ideas how to go about it? I have already tried editing LIBNAME
and LIBSYMBOL. It says:
checking for foo in -lfoo... no
configure: error: wrong foo lib version or lib not found
The file is present as ext/myext/lib/libfoo.so.
Thanks again,
Deepak
--
N Deepak || http://www.ndeepak.info/