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 WAA26729; Wed, 20 Mar 2002 22:05:09 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA26756 for ; Wed, 20 Mar 2002 22:05:08 +0100 (MET) Received: from jah.cs.unm.edu (mail.cs.unm.edu [64.106.20.33]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g2KL56P26720 for ; Wed, 20 Mar 2002 22:05:07 +0100 (MET) Received: from gig-0.cs.unm.edu ([64.106.21.110] ident=wneumann) by jah.cs.unm.edu with esmtp (Exim 3.12 #1) id 16nnGZ-0001kC-00; Wed, 20 Mar 2002 14:05:03 -0700 Date: Wed, 20 Mar 2002 14:05:02 -0700 (MST) From: "William D. Neumann" To: ocaml_beginners@yahoogroups.com cc: caml-list@inria.fr Subject: [Caml-list] camlidl - problems under windows NT Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 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. Does anyone have any idea how to fix this? Any help woud be appreciated. I apologize if this is a silly question or if I am leaving out vital information -- I just had some very bad Japanese food for lunch and I can barely remember my name right now... William D. Neumann --- "The magnum opus of rms and his Foundation is called 'GNU', a project to completely rewrite the propritorially soiled Unix operating system. (Apparently, 'GNU' stands for "Gnu's Not Unix", and is proudly held to be the world's first 'recursive acronym'. Which, of course, proves that rms didn't get out enough in his youth.) -- Nick Roberts ------------------- 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