Thanks. I think I have this working now. I have been using consistent objs (MT|MD|CRT vers) and build everything from src. The trick is to use a seed ocaml compiler (without flex). 1. FlexDLL version 0.19 does not work with visual studio 12. The latest version 034 is ok. 2. Avoid compiling FlexDLL with an ocaml compiler that is built with an older version of flexdll (hence the use of a seed compiler) Regards -Wai From: David Allsopp [mailto:dra-news@metastack.com] Sent: 01 April 2016 09:43 To: Pang, Wai (CA-CIB); caml-list@inria.fr Subject: RE: [Caml-list] FindLib loading dllunix.dll on vs2012 Are you using flexdll.obj and flexdll_initer.obj compiled using VS 2012 yourself from sources, or ones the FlexDLL binary distribution (which are not compiled with VS 2012)? I did a lot of testing earlier this year in advance of 4.03 running the testsuite with every single version of Visual Studio (I went right back to Visual Studio 6), but I was always compiling the object files freshly for each compiler. Although I wasn’t building findlib, it would surprise me hugely that the testsuite would pass yet this systemically not work. I’ve not used it, but I know that ocp-win includes the object files compiled for each version of Visual Studio, which is why Fabrice recommended it. David This email does not create a legal relationship between any member of the Crédit Agricole group and the recipient or constitute investment advice. The content of this email (including any attachments) is intended solely for the addressee and access by any other person is not authorised. It may contain information which is confidential, privileged or otherwise protected from disclosure. If you are not the intended recipient of this email, (i) you should send it back to us and delete it from your system, and (ii) you are prohibited from retaining, distributing, disclosing or using (in whole or part) any of its content. Email communication may be logged and archived, monitored and/or disclosed to third parties. Crédit Agricole Corporate and Investment Bank is authorised by the Autorité de Contrôle Prudentiel et de Résolution (ACPR) and supervised by the ACPR and the Autorité des Marchés Financiers (AMF) in France and subject to limited regulation by the Financial Conduct Authority and the Prudential Regulation Authority. Details about the extent of our regulation by the Financial Conduct Authority and the Prudential Regulation Authority are available from us on request. Crédit Agricole Corporate and Investment Bank is incorporated in France with limited liability and registered in England and Wales. Registration number: FC008194. Registered office: Broadwalk House, 5 Appold Street, London, EC2A 2DA Please refer to http://www.ca-cib.com/group-overview/dodd-frank-otc-derivatives.htm for any Dodd-Frank Disclosure for U.S. Persons pursuant to CFTC Regulation 23.431