Re: postgres functions and C++

From: Christof Petig <christof(dot)petig(at)wtal(dot)de>
To: "Vladimir V(dot) Zolotych" <gsmith(at)eurocom(dot)od(dot)ua>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgres functions and C++
Date: 2000-10-07 21:19:23
Message-ID: 39DF935A.8F655F77@wtal.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tim Kientzle 2000-10-07 22:52:34 Using BLOBs with PostgreSQL
Previous Message Bruce Momjian 2000-10-07 20:04:01 optimization