Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] camlidl - problems under windows NT
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-03-20 (21:05)
From: William D. Neumann <wneumann@c...>
Subject: [Caml-list] camlidl - problems under windows NT
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 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 -cclib -lcamlidl
libcamlidl.lib(idlalloc.obj) : error LNK2001: unresolved external symbol
libcamlidl.lib(idlalloc.obj) : error LNK2001: unresolved external symbol
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

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 Archives:
Bug reports: FAQ:
Beginner's list: