> > That's how to use C in C++ code, not C++ in C code.
> > Feed the above to an ANSI C compiler (solaris) and it says
> > $ cc -o foo foo.c
> > "foo.c", line 2: syntax error before or at: "C"
> > "foo.c", line 6: undefined symbol: new
>
> No, you feed it to C++, then call newThing() from C.
Yes Ben is right. Of course all the C++ to C mapping functions
in the C++ code are NOT class methods.
I wrote a (done in 10 minutes) example (about 4k .zip) for VC++.
I won't send it to the list (because of the traffic) but you can
write a short mail and I send it to you.
Regards Rene
--
-----------------------------------------------------------
Rene G. Eberhard
Mail : [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]