pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: HS <mhossein@gmail.com>
To: pgsql-ports@postgresql.org
Subject: Re: compilation problem
Date: Wed, 12 Oct 2005 20:53:23 -0700
Message-ID: <e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.com> (raw)
In-Reply-To: <5162.1129158769@sss.pgh.pa.us>
References: <e9adaa70510120203w17e213e2qfd7ce34137fec131@mail.gmail.com>
	<5162.1129158769@sss.pgh.pa.us>

The problem is that I have to use a statistical library which is written in
C++. My own code is in plain C.
If I compile the library source code separately and make the object file
using gcc, is there a way that I can change the postgres make files to link
that .o file to postgres (considering teh fact that the .o file's source
file was in C++)?

Thanks,
Hossein

On 10/12/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> HS <mhossein@gmail.com> writes:
> > I'd appreciate it if anyone could help me with this problem (adding a
> > C++ file that uses some C++ libraries to postrges).
>
> Learn to write plain C --- the backend is not a C++ program and cannot
> readily be turned into one.
>
> regards, tom lane
>

view thread (5+ messages)

Message-ID: <e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.com>
Permalink:  ../e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.com/
Also on:    postgresql.org/message-id/e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: mhossein@gmail.com
  Subject: Re: compilation problem
  In-Reply-To: <e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.com>
  References: <e9adaa70510120203w17e213e2qfd7ce34137fec131@mail.gmail.com> <5162.1129158769@sss.pgh.pa.us> <e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.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