Version française
Home     About     Download     Resources     Contact us    
Browse thread
Linking with ocamlopt fails.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] Linking with ocamlopt fails.
> I'm using the binary distribution of OCaml based on MinGW.
> I noticed that when I try to link more than 11 files together with 
> ocamlopt, it fails :
> ocamlopt  -o helloworld.exe -I +sdl -I +lablGL lablgl.cmxa sdl.cmxa 
> sdlttf.cmxa bigarray.cmxa sdlloader.cmxa sdlmixer.cmxa global.cmx 
> events.cmx scene.cmx camera.cmx tex.cmx interface.cmx
> gcc: @C:/Temp\camlrespee624e: Invalid argument
> Error during linking
> Is there any reason ?

Yes, you are probably using the standalone distribution of MinGW
and/or the companion MSYS tools.  These have no support for long
command lines via @responsefiles.

To avoid this problem, use the version of MinGW that is part of the
Cygwin distribution.  This is briefly mentioned in the README.win32
file in the OCaml distribution.

- Xavier Leroy