Skip site navigation (1) Skip section navigation (2)

Calling C++ function

From: Oliver Archner <oliver(dot)archner(at)bitoek(dot)uni-bayreuth(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Calling C++ function
Date: 2004-08-13 12:40:24
Message-ID: 411CB6B8.1050909@bitoek.uni-bayreuth.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
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


Responses

pgsql-interfaces by date

Next:From: Tom LaneDate: 2004-08-13 14:10:06
Subject: Re: large object I/O seeing \\xxx encoding with v3 protocol
Previous:From: Eric MarsdenDate: 2004-08-13 12:38:07
Subject: large object I/O seeing \\xxx encoding with v3 protocol

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group