[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Apr 2 18:56:41 2002 
Subject:Re: external C call 
From:Michael H Lees 
Volume-ID:1020402.03 

Jonathan L Cunningham wrote:

>
>Obviously this is best if you are writing a C program, but if you
>really do need C++, you can tell the compiler to use C style linking
>for the functions you wish to import into poplog. For example, you
>can declare foo in a header file thus:
>
>extern "C" int foo(int x);
>
>and then you can compile the .cc file as C++.
>
>
I do need C++ so this is useful thanks. I know this may be wishful 
thinking but I'm hoping to return a class instance from C++ to poplog 
would this be at all possible? Has anyone ever tried it?

Thanks

-- 
Mike

mhl@cs.nott.ac.uk
http://www.cs.nott.ac.uk/~mhl/