From: "Vladimir Shabanov" <vshabanoff@gmail.com>
To: "Caml List" <caml-list@inria.fr>
Subject: c++ files support in ocamlc, ocamlopt & ocamlbuild
Date: Thu, 29 Mar 2007 01:48:16 +0400 [thread overview]
Message-ID: <8ef825670703281448p1471bde2t12ee951c6a904a1e@mail.gmail.com> (raw)
OCaml compilers have support for .c files, and autmatically run CC for
compilation of those. But why there is no such support for C++ files
(.cpp, .cc, .cxx, .C)?
When I write bindings for C++ libraries I need to rename files to .c
and use "ocamlc -cc g++ ...". Or I need to compile them into some .a
library and use "ocamlc -cclib -l... -lstdc++"
With advent of ocamlbuild it would be nice for C++ files to be recognized too.
E.g.:
> ls
some_lib_ml.cpp some_lib.ml
> ocamlbuild some_lib_ml.o some_lib.cma
and that's all.
AFAICS it's not difficult to add support for C++ files (or maybe I'm
wrong?) Is there any plans to support those?
reply other threads:[~2007-03-28 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8ef825670703281448p1471bde2t12ee951c6a904a1e@mail.gmail.com \
--to=vshabanoff@gmail.com \
--cc=caml-list@inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).