Lonnie Cumberland <lonnie_cumberland@yahoo.com> writes:
> so now I do not understand why the "gcc" version works and the "g++" version
> does not?
You need to say extern "C" to persuade a C++ compiler to compile a
function as something that can be called from plain C. They are not
the same language. See your C++ documentation for more info.
regards, tom lane