Re: compilation problem - Mailing list pgsql-ports

From HS
Subject Re: compilation problem
Date
Msg-id e9adaa70510122053i2998f0aduee5c901d06286edd@mail.gmail.com
Whole thread Raw
In response to Re: compilation problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-ports
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

pgsql-ports by date:

Previous
From: Tom Lane
Date:
Subject: Re: compilation problem
Next
From: Bruce Momjian
Date:
Subject: Darwin compile fixes