From: Jean-Marie Geffroy <geffroy@cornas.inria.fr>
To: stefan.monnier@epfl.ch
Cc: christ@mdhost.cse.tek.com, caml-list@pauillac.inria.fr
Subject: Re: interface to C++
Date: Wed, 20 Sep 1995 14:43:16 +0200 [thread overview]
Message-ID: <199509201243.AA20588@cornas.inria.fr> (raw)
In-Reply-To: <7751.811598499@lia.di.epfl.ch> (stefan.monnier@epfl.ch)
Stefan Monnier <stefan.monnier@epfl.ch> wrote
> Rather than mess around with the mangled names, you might be better
> off trying to compile caml-light with your C++ compiler so that the
> name (de)mangling is all done by your compiler. Since C++ is an
> approximate superset of ANSI C, it might work.
Right. The Windows version (1) is in fact already compiled this way:
the standard caml system is written in pure C but compiled with a C++
compiler. The graphical interface is written in C++ and uses the
MFC. It exports 5 or 6 functions through extern "C" declarations such
as:
extern "C" ui_xxx(...){...}
The C modules contain standard extern declarations:
extern ui_xxx(...);
Linking C++ functions is thus completely straightforward and there's no
messing around with names.
Hope this helps !
Jean-Marie
(1) soon available !
prev parent reply other threads:[~1995-09-20 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-18 17:53 christ
1995-09-20 10:10 ` Xavier Leroy
1995-09-20 12:01 ` Stefan Monnier
1995-09-20 12:43 ` Jean-Marie Geffroy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199509201243.AA20588@cornas.inria.fr \
--to=geffroy@cornas.inria.fr \
--cc=Jean-Marie.Geffroy@inria.fr \
--cc=caml-list@pauillac.inria.fr \
--cc=christ@mdhost.cse.tek.com \
--cc=stefan.monnier@epfl.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox