Received: from sss.pgh.pa.us ([216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3F18Ou74133 for ; Sat, 14 Apr 2001 21:08:24 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f3F18HR24991; Sat, 14 Apr 2001 21:08:17 -0400 (EDT) To: Lonnie Cumberland cc: Peter Eisentraut , pgsql-interfaces@postgresql.org Subject: Re: [SQL] g++ not working for postgresql extension languages? In-reply-to: <20010415004615.35217.qmail@web12508.mail.yahoo.com> References: <20010415004615.35217.qmail@web12508.mail.yahoo.com> Comments: In-reply-to Lonnie Cumberland message dated "Sat, 14 Apr 2001 17:46:15 -0700" Date: Sat, 14 Apr 2001 21:08:17 -0400 Message-ID: <24987.987296897@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200104/38 X-Sequence-Number: 1421 Lonnie Cumberland 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