Re: [GENERAL] Trigonometry

From: Statistical Solutions <statsol(at)statsol(dot)com>
To: Richard Lynch <lynch(at)cognitivearts(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Trigonometry
Date: 1999-04-23 17:01:22
Message-ID: Pine.GSO.4.05.9904231254340.10449-100000@gecko
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 23 Apr 1999, Richard Lynch wrote:

> I *can* compile c code, so if somebody could 'splain to a Lisp hacker how
> to make a gpsdistance.so that would maybe work?

Richard,
if you are using gcc use the -G or the -shared option. (I believe -shared
is the preferred usage now but -G works also).

gcc -shared -fPIC -o myGPSfuncs.so myGPSfuncs.c -lm

(last is just to link in the math libraries).

Sometimes, its wise to add the -R flag, along with the appropriate paths
for where shared libraries reside, as in
gcc- shared -fPIC -R/usr/local/lib:/usr/lib:/home/me/mylibs -o
myGPSfuncs.so myGPSfuncs.c -lm

so that where when an app needs this library, it knows where to look for
others also.

steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message M Simms 1999-04-23 17:41:10 left join
Previous Message Bruce Momjian 1999-04-23 16:14:53 Re: [GENERAL] entity relationship diagram free software