Version française
Home     About     Download     Resources     Contact us    
Browse thread
linking ocaml in multithreaded shared dll app
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Charles Neveu <neveu@a...>
Subject: Re: linking ocaml in multithreaded shared dll app
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