dawizz <wwwillem(at)zonnet(dot)nl> writes:
> and I get the error message:
> ERROR: Could not find function 'runTest' in file '/lib/funcTest.so'
> As far as I can tell the library should be OK?
No, because you've neglected to prevent C++ name mangling of the
function name. You need to declare it with "C" linkage.
More generally, the backend is a C engine not a C++ engine, and
you're likely to come to serious grief if you insist on trying to
use C++ libraries (like iostream) in a dynamic library. I think
you'd be a lot better off to use gcc not g++ ...
regards, tom lane