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 2A8E47EE25 for ; Sun, 16 Jun 2013 02:18:53 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of bills@emu-bark.com) identity=pra; client-ip=64.202.165.173; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="bills@emu-bark.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of bills@emu-bark.com) identity=mailfrom; client-ip=64.202.165.173; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="bills@emu-bark.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@m1plsmtpa01-01.prod.mesa1.secureserver.net) identity=helo; client-ip=64.202.165.173; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="postmaster@m1plsmtpa01-01.prod.mesa1.secureserver.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiMCAAcEvVFAyqWtemdsb2JhbABagzvAFBYOAQEJDQkJESuCYkA9FhgDAgECATcBEw0IAQGICplCn0iTLgOdYY5O X-IPAS-Result: AiMCAAcEvVFAyqWtemdsb2JhbABagzvAFBYOAQEJDQkJESuCYkA9FhgDAgECATcBEw0IAQGICplCn0iTLgOdYY5O X-IronPort-AV: E=Sophos;i="4.87,873,1363129200"; d="scan'208";a="21990905" Received: from m1plsmtpa01-01.prod.mesa1.secureserver.net ([64.202.165.173]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Jun 2013 02:18:52 +0200 Received: from [192.168.0.2] ([173.26.186.224]) by m1plsmtpa01-01.prod.mesa1.secureserver.net with id ooJp1l00E4qv3b901oJqLm; Sat, 15 Jun 2013 17:18:50 -0700 Message-ID: <51BD0469.6000400@emu-bark.com> Date: Sat, 15 Jun 2013 20:18:49 -0400 From: William Smith User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Caml-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Caml-list] creating ocaml compatible DLLs with visual studio Hi, I'm trying to create a .DLL on Windows to be used by a native Microsoft toolchain ocaml 4.00.1. I'm trying to use the visual studio 10 IDE to do the compilation of the C++ code. In my initial test, the header has #include and the sample code is CAMLprim value negate(value arg) { CAMLparam1( arg ); CAMLreturn( -Val_int( arg ) ); } My problem is that I get the link error "unresolved external symbol _caml_local_roots" I've tried adding libasmrun.lib or libcamlrun.lib to the linker input but either of them just causes even more unresolved externals. Can I get beyond this? Thanks Bill