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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 4A836801C0 for ; Mon, 10 Jul 2017 18:02:39 +0200 (CEST) Authentication-Results: mail2-smtp-roc.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 (mail2-smtp-roc.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=mail2-smtp-roc.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 (mail2-smtp-roc.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=mail2-smtp-roc.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 (mail2-smtp-roc.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=mail2-smtp-roc.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=3AXa4hNBIoZ2OJkvxjZtmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgRKvrxwZ3uMQTl6Ol3ixeRBMOAuq0C07KempujcFRI2YyGvnEGfc4EfD4+ou?= =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgpp?= =?us-ascii?q?POT1HZPZg9iq2+yo9ZDeZwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+?= =?us-ascii?q?RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLd?= =?us-ascii?q?QgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhj?= =?us-ascii?q?oZOT438G/ZicJ+g6xUrx2juxNxzJXZYJ2XOfdkYq/RYd0XSGhHU81MVyJBGIS8?= =?us-ascii?q?b44XAuQdI+lYspLyqEUIrRCjGQesA+3uxSFVjXLxwaM2yfwvHRvb0gA6A9wOt3?= =?us-ascii?q?rVo8vuOacRT++1yrXIwS/ZYPxKwzv99YvIfwknrPqRXrxwadLcxVQxGw7BlFmc?= =?us-ascii?q?tJLpMymL2ugQqWSW4fRsWfqyh2I5rwx9uCWjytk2hoXXmI4YyErI+CR/zY0oP9?= =?us-ascii?q?O3UlR7bsShEJZItyGVKY92QsQ6TmFttyc21qcKuZ2lcygM1JQr3QTQZOCdf4iV?= =?us-ascii?q?4RLvTOeRITFmi3J5YL+zmgi+/Ey6xuHhSMW4ykhGojdfntTCqHwBzxnT5dKGSv?= =?us-ascii?q?t58EehwzGP1wXL5+9YO0w6jbDXJYM7zrAskZoSv1rMEzT1mEroiq+Wal8o9fK0?= =?us-ascii?q?5Oj9f7XmpYeQN5VohQHmLqQuhsu/DPwkPQcUWmib/f2w1Lni/U3iXLVHleY2k6?= =?us-ascii?q?ncsJDCP8sXvK+5AwlP0oYi8RmzFTmm0M5L1UUAeVlMfRbCi4nyJ3nPJur5BLGx?= =?us-ascii?q?mQeCijBuksrLI7fsBN33KWfO2OPbO5A70AhmzxU+5dNS4Y4SA7pHPfGlCRy5j8?= =?us-ascii?q?DREhJsa1/8+O3gEtgojo4=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0A7AQCkpGNZhyAVDIFdHQEFAQsBGAEFA?= =?us-ascii?q?QsBhAOFFIoZp26CEQGGGwKDJD8YAQEBAQEBAQEBAQESAQEBCgsJCCgvgjMigkQ?= =?us-ascii?q?DAyMVUSUCJgICVxMIAQGKK6sTgiaHbRqDHQELJoELgh2FLSuIL4JHgmEFnx6UC?= =?us-ascii?q?pIilUAfd0sxITSFcIF0iVsBAQE?= X-IPAS-Result: =?us-ascii?q?A0A7AQCkpGNZhyAVDIFdHQEFAQsBGAEFAQsBhAOFFIoZp26?= =?us-ascii?q?CEQGGGwKDJD8YAQEBAQEBAQEBAQESAQEBCgsJCCgvgjMigkQDAyMVUSUCJgICV?= =?us-ascii?q?xMIAQGKK6sTgiaHbRqDHQELJoELgh2FLSuIL4JHgmEFnx6UCpIilUAfd0sxITS?= =?us-ascii?q?FcIF0iVsBAQE?= X-IronPort-AV: E=Sophos;i="5.40,341,1496095200"; d="scan'208";a="282830680" Received: from mx0.kent.ac.uk ([129.12.21.32]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2017 18:02:38 +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 1dUb8w-00080l-8H for caml-list@inria.fr; Mon, 10 Jul 2017 17:02:38 +0100 To: caml-list@inria.fr References: <20170710145127.4A9E31700D80@cs.miami.edu> From: Reuben Rowe Message-ID: Date: Mon, 10 Jul 2017 17:02:38 +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: <20170710145127.4A9E31700D80@cs.miami.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: [Caml-list] Error When Linking Against SDSL C++ Library 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