From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id F2072BBAF for ; Mon, 28 Jun 2010 23:13:29 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIIADutKExV2gB4X2dsb2JhbACTAgEBjD0fJSLBMoUkBIo0 X-IronPort-AV: E=Sophos;i="4.53,499,1272837600"; d="scan'208";a="53302110" Received: from emailfrontal1.citycable.ch ([85.218.0.120]) by mail3-smtp-sop.national.inria.fr with SMTP; 28 Jun 2010 23:13:29 +0200 Received: from localhost (emailfrontal1.citycable.ch [85.218.0.120]) by emailfrontal1.citycable.ch (Postfix) with ESMTP id 93DBC12C5C6; Mon, 28 Jun 2010 23:13:26 +0200 (CEST) Received: from unknown (guillaume.yziquel/citycable.ch@85.218.0.100); 28 Jun 2010 23:13:26 -0000 Message-ID: <1277759606.4c29107687612@http.citycable.ch> Date: Mon, 28 Jun 2010 23:13:26 +0200 To: caml-list@inria.fr From: Guillaume Yziquel Subject: Linking with libstdc++.so MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; guillaume:01 guillaume:01 ocamlc:01 -verbose:01 -dllib:01 stubs:01 -dllib:01 cmo:01 symlink:01 usr:01 lib:01 ocaml:01 stublibs:01 compile:01 cma:01 Hello. I've been trying to compile a library with C++. With something like: ocamlc -verbose -a -dllib dllmystuff_stubs.so -dllib libstdc++ -o myStuff= .cma myStuff.cmo However, on Debian systems, there is a libstdc++.so.5 and a libstdc++.so.= 6 file. No=20 libstdc++.so file. So the -dllib libstdc++ option doesn't locate properly= the library. How do you=20 manage to have more control over the name of the library without resortin= g to using an ugly=20 symlink in /usr/lib/ocaml/stublibs? All the best, Guillaume Yziquel.