Martin Zvarík napsal(a):
Per Jessen napsal(a):
Martin Zvarík wrote:
I am totally new in compiling under cygwin.
I need to compile an PHP extension, and this is what I figured so far:
I wouldn't expect cygwin to be that different to a real Linux
environment - how about:
untar the extension
Hmm, it seemed all working, but...
...created 4 files:
extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai)
$ make install
... created: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
one file *.a (8 bytes "!<arch>")
So, I did:
$ gcc -shared -o extname.dll extension.o (the 280 kB file)
And it showed 100's of errors like "undefined reference to '_php_printf'
Can you help? I searched, but I am helpless.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php