Re: postgres functions and C++ - Mailing list pgsql-hackers

From Christof Petig
Subject Re: postgres functions and C++
Date
Msg-id 39DF935A.8F655F77@wtal.de
Whole thread Raw
In response to postgres functions and C++  ("Vladimir V. Zolotych" <gsmith@eurocom.od.ua>)
List 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




pgsql-hackers by date:

Previous
From: Alfred Perlstein
Date:
Subject: Re: Still crashing with latest 7.0.2 (Re: (forw) more crashes)
Next
From: Peter Eisentraut
Date:
Subject: Re: Autoconf version discrepancies