pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lonnie Cumberland <lonnie_cumberland@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: multiple files or adding a libfile.a to a file.so
Date: Sat, 14 Apr 2001 19:21:31 -0700 (PDT)
Message-ID: <20010415022131.41949.qmail@web12508.mail.yahoo.com> (raw)

Hello All,

I guess that my question from the previous messages can be simplified to ask
how can I add multiple files to a single "funcs.so" file being generated.

for example if I have three files: funcs1.cc funcs2.cc funcs3.cc

and am currently using this compile line:

g++ -I./include -I./backend -O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -I/usr/include/pgsql -I/usr/include
-fpic -c -o funcs.o funcs.cc

g++ -shared -o funcs.so funcs.o
 
then how can I add ALL of the files to this funcs.so so that it can be loaded
by the PL/pgSQL parser and I can use my functions.

Originally, I have the 3 funcs files compiled into a libcryptopp.a, but I was
thinking that it might be easier to try and just add all of the sources
although there should be a was to simply add the libcryptopp.a file.

Any ideas on this?

Cheers,
Lonnie


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Message-ID: <20010415022131.41949.qmail@web12508.mail.yahoo.com>
Permalink:  ../20010415022131.41949.qmail@web12508.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010415022131.41949.qmail@web12508.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lonnie_cumberland@yahoo.com
  Subject: Re: multiple files or adding a libfile.a to a file.so
  In-Reply-To: <20010415022131.41949.qmail@web12508.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox