X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3126CD834C for ; Thu, 13 Oct 2005 00:53:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40109-09 for ; Thu, 13 Oct 2005 03:53:25 +0000 (GMT) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.197]) by svr1.postgresql.org (Postfix) with ESMTP id 47334D8315 for ; Thu, 13 Oct 2005 00:53:25 -0300 (ADT) Received: by qproxy.gmail.com with SMTP id e12so26262qbe for ; Wed, 12 Oct 2005 20:53:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=P29r0LLXyrVcfxhIyI225eGsRpZY6ZbwW5XCHzmVFv3JBOqgET7mYXGBeA1waWCsewNnW180w9Usr+l+/Vdc8ZvLV08UBW2UYM+6H6XxK32WOxr/dV40ryJTeiwwDdA/gRRiDjVrfUUUHgV0NTXNzlW8xhgUSOZy6SS/BCIEtRc= Received: by 10.65.52.9 with SMTP id e9mr55239qbk; Wed, 12 Oct 2005 20:53:24 -0700 (PDT) Received: by 10.65.138.10 with HTTP; Wed, 12 Oct 2005 20:53:23 -0700 (PDT) Message-ID: Date: Wed, 12 Oct 2005 20:53:23 -0700 From: HS To: pgsql-ports@postgresql.org Subject: Re: compilation problem In-Reply-To: <5162.1129158769@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40310_14087182.1129175603894" References: <5162.1129158769@sss.pgh.pa.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.215 required=5 tests=[AWL=0.105, HTML_40_50=0.086, HTML_MESSAGE=0.001, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200510/8 X-Sequence-Number: 2224 ------=_Part_40310_14087182.1129175603894 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 wrote: > > HS 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 > ------=_Part_40310_14087182.1129175603894 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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@s= ss.pgh.pa.us> wrote:
HS <mhossein@gmail.com> wri= tes:
> I'd appreciate it if anyone could help me with this problem (a= dding a
> C++ file that uses some C++ libraries to postrges).

Learn to write plain C --- the backend is not a C++ program and cannot
r= eadily be turned into one.

       = ;            &n= bsp;    regards, tom lane

------=_Part_40310_14087182.1129175603894--