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 C7DFF80198 for ; Mon, 10 Jul 2017 18:45:56 +0200 (CEST) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=R.N.S.Rowe@kent.ac.uk; spf=None smtp.mailfrom=R.N.S.Rowe@kent.ac.uk; spf=None smtp.helo=postmaster@mx0.kent.ac.uk Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of R.N.S.Rowe@kent.ac.uk) identity=pra; client-ip=129.12.21.32; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="R.N.S.Rowe@kent.ac.uk"; x-sender="R.N.S.Rowe@kent.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of R.N.S.Rowe@kent.ac.uk) identity=mailfrom; client-ip=129.12.21.32; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="R.N.S.Rowe@kent.ac.uk"; x-sender="R.N.S.Rowe@kent.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mx0.kent.ac.uk) identity=helo; client-ip=129.12.21.32; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="R.N.S.Rowe@kent.ac.uk"; x-sender="postmaster@mx0.kent.ac.uk"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3A4dtVOxYjZ4l8lHLhK6rZarL/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZoMy8bnLW6fgltlLVR4KTs6sC0LuJ9fi4EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+?= =?us-ascii?q?RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPC?= =?us-ascii?q?TQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD?= =?us-ascii?q?0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbo6OOfpifK7QZ88WSXZPU8tTUSFKH4Oy?= =?us-ascii?q?b5EID+oEJetWs5fyp0YVohSgAwmnGf/hyjhGh3DowKY31PgvHRve0gA6AtwCqm?= =?us-ascii?q?jarNL7NagMSu21z7fHzTPfb/9Mwzjy9JLEcg0iofyVW797bMnfyVE3Gg/YkFmd?= =?us-ascii?q?rZbpMy6L2ugXrWSX8vBsWOyxh2I/tg19vDyiyt0xhoXXnI4Z1E7I+CdjzIs0I9?= =?us-ascii?q?CzVVR1bsS+EJRKsiGXL4t2Td0mQ2FvoCs6z7IHtYKhcCgJ1psnwQLfZ+adfIeU?= =?us-ascii?q?+B7jSeWRLS95hHJjZr2/mw6//VW+xuD4TMW4zUhGojBbntXRrHwA2QLf5tCCSv?= =?us-ascii?q?Rn/0eh3TiP1xrU6uFBOU06ibDXJYY7zrAtjJYdrUPDHyHol0jtj6+ZaEMk+vSy?= =?us-ascii?q?5+v9frrqvIKcN4xshgHkLqsugtC/Afg/MgUWQ2eU4+G81Ln68U39QbVKleE2n7?= =?us-ascii?q?LCsJHaIMQbvrS2DxVU0oYl8Ra/Di2p3M4WnXkdfxp5f0eMho3tflXPO+zQDPGl?= =?us-ascii?q?gl3qni046erBO+jbD4jHI36LqrD+cP4p0Qh6jjF199dA6rpXB7cdZvv4HFLy4o?= =?us-ascii?q?+LRiQlOhC5lr60QO520ZkTDDqC?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D8AwDBrmNZhyAVDIFdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBhAOFFJthIpgVAYYbAoMkQhUBAQEBAQEBAQEBARIBAQEKCwkIKC+?= =?us-ascii?q?CMyKCRAECAyMVUQsYAgImAgJXEwgBAYorqy6CJodvGoMdAQEIAiaBC4IdhS0rC?= =?us-ascii?q?4JuhTaCR4JhBZ8elAqSIpVANWFLMSE0TYUTEAyBaIlbAQEB?= X-IPAS-Result: =?us-ascii?q?A0D8AwDBrmNZhyAVDIFdHAEBBAEBCgEBFwEBBAEBCgEBhAO?= =?us-ascii?q?FFJthIpgVAYYbAoMkQhUBAQEBAQEBAQEBARIBAQEKCwkIKC+CMyKCRAECAyMVU?= =?us-ascii?q?QsYAgImAgJXEwgBAYorqy6CJodvGoMdAQEIAiaBC4IdhS0rC4JuhTaCR4JhBZ8?= =?us-ascii?q?elAqSIpVANWFLMSE0TYUTEAyBaIlbAQEB?= X-IronPort-AV: E=Sophos;i="5.40,341,1496095200"; d="scan'208";a="231117273" Received: from mx0.kent.ac.uk ([129.12.21.32]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2017 18:45:55 +0200 Received: from edue306.kent.ac.uk ([129.12.227.6]) by mx0.kent.ac.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dUbop-00032U-79 for caml-list@inria.fr; Mon, 10 Jul 2017 17:45:55 +0100 To: caml-list@inria.fr References: <20170710145127.4A9E31700D80@cs.miami.edu> From: Reuben Rowe Message-ID: Date: Mon, 10 Jul 2017 17:45:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Caml-list] Error When Linking Against SDSL C++ Library Hi, I have solved this now - I did not include the CAML header files as extern "C". Thanks, Reuben On 10/07/17 17:02, Reuben Rowe wrote: > Hi, > > I am trying to link some OCaml code against the SDSL C++ library, but > I am getting a strange error. > > It seems that a reference in being generated to the caml_flush() > function, but in the standard namespace (index_interface.o is my > wrapper to expose the library to my OCaml code): > > ../index_interface.o: In function `sdsl::int_vector_buffer<(unsigned > char)8>::write_block()': > /usr/local/include/sdsl/int_vector_buffer.hpp:89: undefined reference > to `std::ostream::caml_flush()' > ../index_interface.o: In function `sdsl::int_vector_buffer<(unsigned > char)0>::write_block()': > /usr/local/include/sdsl/int_vector_buffer.hpp:89: undefined reference > to `std::ostream::caml_flush()' > collect2: error: ld returned 1 exit status > > I am guessing this is not where it should be looking for caml_flush!? > > The SDSL int_vector_buffer class on the line in question is just > calling the flush() method on an object with a type that inherits from > std::ostream. > > Does anyone have an idea of why this might be happening? > > Thanks, > > Reuben >