Thank you muchly. It took considerable trial and error but I got it
working.
For any poor person that ends up searching this list and comes up to
this thread, in the config.m4 file add the lines
PHP_REQUIRE_CXX
EXTRA_LDFLAGS=-lstdc++
Somewhere.
Also make sure that your file ends in the extensio
When you need to access function compiled from C++ source code, you
need to declare it as extern "C", in order to tell the compiler to
generate function name that is compatible with C. Otherwise, compiler
will generate different name (will mangle it), and C won't be able to
find it.
So, write
e
I've currently got some libraries written in C++ with various class
interfaces, I was going to write an interface between them and PHP but
got very stuck trying to get the extension to recognize any C++ linked
to it at all..
I spent quite a while searching the archives and google before posting