caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Julian <swaplink@free.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Linking with ocamlopt fails.
Date: Mon, 21 Feb 2005 13:16:23 +0100	[thread overview]
Message-ID: <20050221121623.GA27020@yquem.inria.fr> (raw)
In-Reply-To: <4218E614.6010102@free.fr>

> 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


      reply	other threads:[~2005-02-21 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-20 19:33 Julian
2005-02-21 12:16 ` Xavier Leroy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050221121623.GA27020@yquem.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=swaplink@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).