Re: postgres functions and C++

Christof Petig <christof.petig@wtal.de>

From: Christof Petig <christof.petig@wtal.de>
To: "Vladimir V. Zolotych" <gsmith@eurocom.od.ua>
Cc: pgsql-hackers@postgresql.org
Date: 2000-10-07T21:19:23Z
Lists: pgsql-hackers
"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.

Christof