"Vladimir V. Zolotych" wrote:
> Hello all,
>
> Compile with
> $ g++ -I/usr/local/qt/include -o days.so -shared days.cpp
IIRC you have to compile as days.o and then link to .so:
g++ -o days.o
ld -shared -o days.so days.o
I don't know if the compiler gets it right in one line. It might.
C
"Vladimir V. Zolotych" <[EMAIL PROTECTED]> writes:
> my=> select days_in_month(3, 3, 3);
> ERROR: Can't find function days_in_month in file /tmp/days.so
Try using 'nm' to see what symbol name is actually being exported
from the .so file. I suspect that despite your use of extern "C",
your C+