pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lonnie Cumberland <lonnie_cumberland@yahoo.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [SQL] g++ not working for postgresql extension languages?
Date: Sat, 14 Apr 2001 21:08:17 -0400
Message-ID: <24987.987296897@sss.pgh.pa.us> (raw)
In-Reply-To: <20010415004615.35217.qmail@web12508.mail.yahoo.com>
References: <20010415004615.35217.qmail@web12508.mail.yahoo.com>

Lonnie Cumberland <lonnie_cumberland@yahoo.com> writes:
> so now I do not understand why the "gcc" version works and the "g++" version
> does not?

You need to say extern "C" to persuade a C++ compiler to compile a
function as something that can be called from plain C.  They are not
the same language.  See your C++ documentation for more info.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <24987.987296897@sss.pgh.pa.us>
Permalink:  ../24987.987296897@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24987.987296897@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, lonnie_cumberland@yahoo.com, peter_e@gmx.net
  Subject: Re: [SQL] g++ not working for postgresql extension languages?
  In-Reply-To: <24987.987296897@sss.pgh.pa.us>

* 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