[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-ports
Subject:    Re: [PORTS] compilation problem
From:       HS <mhossein () gmail ! com>
Date:       2005-10-13 3:53:23
Message-ID: e9adaa70510122053i2998f0aduee5c901d06286edd () mail ! gmail ! com
[Download RAW message or body]

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
>

[Attachment #3 (text/html)]

The problem is that I have to use a statistical library which is written in C++. My \
own code is in plain C. <br> 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++)?<br>
<br>
Thanks,<br>
Hossein<br><br><div><span class="gmail_quote">On 10/12/05, <b \
class="gmail_sendername">Tom Lane</b> &lt;<a \
href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>&gt; wrote:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> HS &lt;<a \
href="mailto:mhossein@gmail.com">mhossein@gmail.com</a>&gt; writes:<br>&gt; I'd \
appreciate it if anyone could help me with this problem (adding a<br>&gt; C++ file \
that uses some C++ libraries to postrges).<br><br> Learn to write plain C --- the \
backend is not a C++ program and cannot<br>readily be turned into \
one.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;regards,
 tom lane<br></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic