no all compilers support the export keyword.
just put the template in a .h or .hpp file and include it in your .cpp
file. that should be enough.
-Whit
On Tue, Nov 18, 2008 at 2:50 PM, charlie <[EMAIL PROTECTED]> wrote:
> Thanks guys for all your kind heartedness.
>
> Yeah, I got messed up with
Thanks guys for all your kind heartedness.
Yeah, I got messed up with a lot of things in my previous program, like
missing the definition of one function and etc. I finally discovered a good
example on:
http://www.opensource.apple.com/darwinsource/Current/swig-4/swig/Examples/java/funcptr/index.ht
I don't know about your examples from section 5.4.9 of the swig manual, but
the very basic SWIG example I have played with still works:
[EMAIL PROTECTED]:~/src/progs/swig/R> cat example.c
/* File : example.c */
double My_variable = 3.0;
/* Compute factorial of n */
int fact(int n) {
On Thu, Nov 6, 2008 at 11:29 AM, Whit Armstrong <[EMAIL PROTECTED]>wrote:
> did you wrap your function prototype in extern "C" ?
>
> -Whit
>
>
>
Hi Whit,
Thanks for replying my question. I already gave up my own code and now I am
trying with the examples from SWIG Doc 1.3. I can not even reproduc