Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Problem linking on cygwin
[ 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] Problem linking on cygwin
> I have the following problem building my executable:
> 
> bash-2.04$ make -f Makefile.win32
> /usr/local/bin/ocamlc.exe -o ./bin/maple_2_mupad      maple_lexer.cmo
> stringtabl
> e.cmo maple.cmo maple_parser.cmo mpl2mup.cmo maple_2_mupad.cmo str.cma
> 
> I/O error: ./bin/maple_2_mupad: No such file or directory
> make: *** [bin/maple_2_mupad] Error 2
> 
> What seems to happen is that the file maple_2_mupad is not renamed from
> maple_2_mupad.exe

Right.  More precisely, gcc -o ./bin/maple_2_mupad decides to put its
output in ./bin/maple_2_mupad.exe behind OCaml's back.  Normally, the
ocamlc compiler should compensate for this, but maybe there's a bug in
this part of the code; I'll investigate.

At any rate, just do /usr/local/bin/ocamlc.exe -o ./bin/maple_2_mupad.exe
(i.e. put a .exe suffix on the output file name) and things should
work better.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr