Re: [GENERAL] Writing C functions

From: Alexey Vyskubov <alexey(at)byte-unix(dot)piter-press(dot)ru>
To: Jeff Davis <jeff95350(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Writing C functions
Date: 2000-01-23 23:36:10
Message-ID: 20000124023610.A17280@byte-unix.piter-press.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> After you have written a functions.c file, how do you
> compile it how postgres wants it with gcc?

Well. It depends on your OS.
Under OpenBSD works

gcc -fpic -c -o file.o file.c
ld -Bshareable -o file.so file.c

info gcc should help you.

--
Alexey

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2000-01-24 00:41:07 More C function questions
Previous Message Ed Bras 2000-01-23 23:32:21 RE: Where is the Database log file ?