Hi,
I've started reading on the Zend API and am going through the examples
and run across a small problem while linking a shared extension.
Excuse my limited knowledge. I've manually compiled one of the example
extensions from http://us2.php.net/manual/en/zend.creating.php and I'm
trying to link it up and am getting undefined symbols:
% gcc -L/usr/lib -o zendTest.so zendTest.o
ld: Undefined symbols:
_main
_zend_parse_parameters
The docs say to link with: cc -shared -L/usr/local/lib -rdynamic -o
<your_module_file> <your_object_file(s)> but I'm using gcc3 on
Darwin/OSX and it doesn't support the -shared and -rdynamic flags. I'm
not sure how to debug this problem cause I'm not exactly sure what lib
I'm actually linking to, and the documentation is somewhat vague. Can
someone point me in the right direction??
Thanks,
Justin Hannus
<justin@128kb.com