From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 7B5E3BC69 for ; Wed, 28 Mar 2007 23:48:17 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SLmH7w011210 for ; Wed, 28 Mar 2007 23:48:17 +0200 Received: by nf-out-0910.google.com with SMTP id a25so3509762nfc for ; Wed, 28 Mar 2007 14:48:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FiANfjF5X4882P/0Podr50EfZ5NCIwwAnGdw7i1g+WwtsS0WeUwVN5BgVmgXT05rZdBGe8kSh2fTHaUhF+6k00PG/iqvJED/WYwrR/6MludlMol9SiaFFTpSPNMQKF6/CssV7xx2kTvj+8J/npn1B92vthhPn+1z2gdh2UNuEAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=orSuVGQu3dCVCFhwyxpNR2P/LVVOilDc8MnHcFdI6r5ANXNYsTh3cc6OdhPy7S+n8Ab8WNnLYd+QD/V5TH76mBpKs879y40CZgJCEIdUKsYDBtLKBgysWKyGu5OrQ3G69ImEzjF3/PI0ujS7LXF3yAYtxhqjpNjRuvL3IzoqQYs= Received: by 10.78.171.13 with SMTP id t13mr4528038hue.1175118496527; Wed, 28 Mar 2007 14:48:16 -0700 (PDT) Received: by 10.78.11.1 with HTTP; Wed, 28 Mar 2007 14:48:16 -0700 (PDT) Message-ID: <8ef825670703281448p1471bde2t12ee951c6a904a1e@mail.gmail.com> Date: Thu, 29 Mar 2007 01:48:16 +0400 From: "Vladimir Shabanov" To: "Caml List" Subject: c++ files support in ocamlc, ocamlopt & ocamlbuild MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 460AE2A1.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 460AE2A1.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlc:01 ocamlopt:01 ocaml:01 compilation:01 cpp:01 bindings:01 ocamlc:01 -cclib:01 lib:01 cpp:01 lib:01 advent:98 compilers:01 compile:01 cma:01 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?