X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CE1445E37CE for ; Fri, 13 Aug 2004 09:39:23 -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 45789-05 for ; Fri, 13 Aug 2004 12:39:19 +0000 (GMT) Received: from bitoek.uni-bayreuth.de (bti0x1.bitoek.uni-bayreuth.de [132.180.112.2]) by svr1.postgresql.org (Postfix) with ESMTP id A20D25E46D1 for ; Fri, 13 Aug 2004 09:39:15 -0300 (ADT) Received: from bitoek.uni-bayreuth.de (bti0n109.bitoek.uni-bayreuth.de [132.180.112.109]) by bitoek.uni-bayreuth.de (8.12.7/8.12.7) with ESMTP id i7DCd9q7005683 for ; Fri, 13 Aug 2004 14:39:09 +0200 Message-ID: <411CB6B8.1050909@bitoek.uni-bayreuth.de> Date: Fri, 13 Aug 2004 14:40:24 +0200 From: Oliver Archner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Calling C++ function Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS - amavis-milter (http://www.amavis.org/) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/16 X-Sequence-Number: 5064 Hi, i'm trying to write a user-defined C function which creates a thumbnail out of a base64 encoded string. The ImageMagick C++ API provides exactly the functionality i need. So i would like to use these C++ functions. I figured out that i have to define the entry point function with C linkage (extern "C" { ... }). Can anyone point me to example which calls a C++ function from a dynamic library ? -- Oliver Archner Tel.: 0921/55-5727 Fax.: 0921/55-5799 BITÖK Wissenschaftliches Sekretariat Universität Bayreuth D-95440 Bayreuth