English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-02-21 (12:16)
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