pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Archner <oliver.archner@bitoek.uni-bayreuth.de>
To: pgsql-interfaces@postgresql.org
Subject: Calling C++ function
Date: Fri, 13 Aug 2004 14:40:24 +0200
Message-ID: <411CB6B8.1050909@bitoek.uni-bayreuth.de> (raw)

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




view thread (3+ messages)  latest in thread

Message-ID: <411CB6B8.1050909@bitoek.uni-bayreuth.de>
Permalink:  ../411CB6B8.1050909@bitoek.uni-bayreuth.de/
Also on:    postgresql.org/message-id/411CB6B8.1050909@bitoek.uni-bayreuth.de

 · 

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: oliver.archner@bitoek.uni-bayreuth.de
  Subject: Re: Calling C++ function
  In-Reply-To: <411CB6B8.1050909@bitoek.uni-bayreuth.de>

* 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