From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA09740; Thu, 21 Mar 2002 13:25:46 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 NAA10964 for ; Thu, 21 Mar 2002 13:25:45 +0100 (MET) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g2LCPiT06181 for ; Thu, 21 Mar 2002 13:25:44 +0100 (MET) Received: (from uucp@localhost) by relay.rinet.ru (8.11.6/8.11.6) with UUCP id g2LCPcQ00359 for caml-list@inria.fr; Thu, 21 Mar 2002 15:25:38 +0300 (MSK) X-Envelope-To: caml-list@inria.fr Received: from bely.stormoff (BELY) [192.168.0.10] by stormoff with esmtp (Exim 3.12 #1 (Debian)) id 16o1Xi-0007V7-00; Thu, 21 Mar 2002 15:19:42 +0300 X-Comment-To: "William D. Neumann" To: caml-list@inria.fr Subject: Re: [Caml-list] camlidl - problems under windows NT References: From: Dmitry Bely Date: 21 Mar 2002 15:19:42 +0300 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service (Windows)) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "William D. Neumann" writes: > I'm having some problems getting camlidl to work for me under windows NT > (well, not camlidl, but its output). I created a very simple C routine, > bf.c and its associated .idl file, dumb.idl, which I processed with > camlidl...all went well here. I then compiled bf.c, dumb.c, dumb.mli, and > dumb.ml without problems. The problem comes when I try to use the results > of the above in a new program. Here's what happens: > > $ ocamlc -o bftest -custom bf.obj dumb.obj dumb.cmo bft.ml -cclib -lcamlidl > camlprim0.c > libcamlidl.lib(idlalloc.obj) : error LNK2001: unresolved external symbol > __imp__CoTaskMemAlloc@4 > libcamlidl.lib(idlalloc.obj) : error LNK2001: unresolved external symbol > __imp__CoTaskMemFree@4 > bftest.exe : fatal error LNK1120: 2 unresolved externals > Error while building custom runtime system You need to link ole32.lib and oleaut32.lib into resulting executable. > This happens both at a DOS prompt and under Cygwin (using the > Native Win32 port, not one compiled from source under Cygwin). When I > perform the same steps under my OS X installation, everything works > fine. Yes, camlild runtime library uses COM only under Windows. Hope to hear from you soon, Dmitry ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners