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] 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:  FAQ:
To unsubscribe, mail  Archives: