From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA17270 for caml-red; Thu, 14 Dec 2000 19:29:19 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA27471 for ; Thu, 14 Dec 2000 05:01:17 +0100 (MET) Received: from mail.arc.nasa.gov (pony1.arc.nasa.gov [143.232.48.201]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id eBE41GH26600 for ; Thu, 14 Dec 2000 05:01:16 +0100 (MET) Received: from artemis.arc.nasa.gov (pjl.arc.nasa.gov [128.102.115.232]) by mail.arc.nasa.gov (8.9.3/8.9.3) with ESMTP id UAA08797 for ; Wed, 13 Dec 2000 20:01:14 -0800 (PST) Message-ID: <3A384431.7B553F0C@artemis.arc.nasa.gov> Date: Wed, 13 Dec 2000 19:53:21 -0800 From: Charles Neveu X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: linking ocaml in multithreaded shared dll app References: <000001c04a50$fbed35c0$b2328aa4@wfr01946> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr Catching up on an old thread: I'm trying to link ocaml in an application with another library (OpenInventor) which must be linked using the multithreaded-DLL flavor of the runtime libraries. Ocaml must be linked using the multithreaded-static library version of the runtime libs. The OpenInventor vendor says an multithreaded-static version is not an option. So, is it possible to build the ocaml library multithreaded-DLL? If not, where do I find DOSMAP.C? I've searched my CD's, harddrive and the net... Chas > > > > There are several solutions : > * if the source is available, build OpenInventor with /MT instead of /MD, > and use static libs everywhere (including MFC) > * split your program into several DLLs that uses different versions of > the C runtime (Be careful with this !) > * try to build OCaml with /MD, using DOSMAP.C from the CRT source if you > need libunix. > > And some people from this mailing list will probably suggest better > solutions ! > > I hope this will help you. > > Lionel Fourquaux -- Dr. Charles Frederick Neveu T: 650 604-2525 Autonomy and Robotics Group F: 650 604-4036 NASA Ames Research Center E: neveu@artemis.arc.nasa.gov Mail Stop 269-4 W: http://img.arc.nasa.gov/~neveu Moffett Field, CA 94035-1000