From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 6840A7F057 for ; Fri, 3 Oct 2014 12:00:30 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.17.24; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.17.24; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mout.kundenserver.de) identity=helo; client-ip=212.227.17.24; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@mout.kundenserver.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosEAGRzLlTU4xEYnGdsb2JhbABggyM+WMp2h1ECgQsWAREBAQEBAQYNCQkULIQEAQEDAVUkBQsLRlcGEwmILQwJqHYhbw2URAEXihWFayYHhEsFhiuMBZJkBZIEagGCSQEBAQ X-IPAS-Result: AosEAGRzLlTU4xEYnGdsb2JhbABggyM+WMp2h1ECgQsWAREBAQEBAQYNCQkULIQEAQEDAVUkBQsLRlcGEwmILQwJqHYhbw2URAEXihWFayYHhEsFhiuMBZJkBZIEagGCSQEBAQ X-IronPort-AV: E=Sophos;i="5.04,646,1406584800"; d="asc'?scan'208";a="81790363" Received: from mout.kundenserver.de ([212.227.17.24]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Oct 2014 12:00:29 +0200 Received: from office1.lan.sumadev.de (dslb-178-004-068-137.178.004.pools.vodafone-ip.de [178.4.68.137]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0LaU5X-1XwvfZ34Vr-00mOWe; Fri, 03 Oct 2014 12:00:26 +0200 Received: from [192.168.10.100] (unknown [5.146.48.81]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id C1D99DC270; Fri, 3 Oct 2014 12:00:25 +0200 (CEST) Message-ID: <1412330419.5797.150.camel@e130> From: Gerd Stolpmann To: Daniel =?ISO-8859-1?Q?B=FCnzli?= Cc: Ocaml Mailing List Date: Fri, 03 Oct 2014 12:00:19 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-EC6rfU+SLxt3++y0Oi9s" X-Mailer: Evolution 3.10.4-0ubuntu1 Mime-Version: 1.0 X-Provags-ID: V02:K0:VfYqu4YORqVijb2mGDo3q89HfB7D8D04Cag17x686QV bQs1jqKTHu+BGJnyZyIJw32eDUSjVSRQelYHdGNbgV1BzzXzOL 5w6YeFjckqhtimqDvI36Hsw/UDT6p2giqRSWJNdBxXWA8UMFDI 2yEKoMHpsJQUNN0bqllMb0dKZgsBUM+eI6VxKEF08W/RG1AEy0 gC34dnEI1mcMRR9pp1xXekZv6IGl3zdXe13F6TytIz/w3voWle /IXj4qfLy62FLKgYpYsp0tT0BAjFoevofH444GFz1N7N6qkCEP Pp7ie9MvA37h0y6VKG2W8y+g4F8yPB1OPkJnpedRdVdcL+Dj/Y ZBPpbMiUuQohQnOHvJsjwu9xek1ScBWatG8dj+OMd X-UI-Out-Filterresults: notjunk:1; Subject: Re: [Caml-list] Compile and link a C program --=-EC6rfU+SLxt3++y0Oi9s Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Am Freitag, den 03.10.2014, 11:22 +0200 schrieb Daniel B=FCnzli: > Hello,=20 >=20 > Is it possible to use ocamlc as a front-end to compile and link a C progr= am ?=20 If you compile it, ocamlc will add the compiler options it uses for itself (like adding -I). This is usually the right thing to do for compiling wrappers. I don't think you can link anything without an ml module. >(Just want to piggyback on ocaml's configure).=20 Another way is to extract all the options from ocamlc -config. Gerd > Best, >=20 > Daniel=20 >=20 >=20 >=20 --=20 ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ --=-EC6rfU+SLxt3++y0Oi9s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJULnOzAAoJEAaM4b9ZLB5TojoH/3dUCuR/BMpU1FdhELo0/f1H ZT3lQRIoXdtsERppUSBzJOlwnoysoALoSRqQTjAGBLmZ3kgT+sby9y83SOoUv6YG n08HR9Gp+ER18p+aIMBGCrx8Wz/Tvmn6MttJjSdB0pJlsuUTbuGcaZo2JkKLoBvv XMWNL73iZi+scpc9OtYrFQxUWaGnL3YuMce7rxftEqn5Se0SVo5D2X9r6wI/ljYK fxOca2t8cOUYAkuaXunP/lpDFt+05AT9OeOCWH7N7kec1yfz1YXRGyJQPduQ6i5Q YX1BPq1ngAPQG0KflotyEJX1f3J3Xku2ZSetuXEqdlQ4fETIWvJrsGZonj8p19k= =IMc2 -----END PGP SIGNATURE----- --=-EC6rfU+SLxt3++y0Oi9s--