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] New Ensemble release, 1.35
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-18 (09:52)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Problem building -custom on Windows 2000
> Has anyone encountered the following problem:
> My development environment is Windows 2000, Ocaml 3.04, and Dev Studio
> .NET (for the necessary C compiler, linker, etc)
> I am trying to build an ocaml application with the -custom switch.
> The problem is that if OCAMLLIB is defined as "C:\program files\..."
> the link stage fails claiming that it cannot find the relevant Ocaml
> files.

This problem is known as "the killer space in file names" :-)
OCaml 3.04 calls the C linker without quoting properly the file arguments,
including the OCaml standard library directory.  You can view the
resulting mess by running ocamlc -verbose -custom ... for the linking

This bug should be fixed for good in 3.05.  In the meantime, using the
DOS name for OCAMLLIB, as suggested on this list, should do the job.

- Xavier Leroy
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: