By installing OCaml on Windows 7, 64-bit (self-tuning), I tried to create a simple exe file with
ocamlopt HelloWorld.ml -o HelloWorld
As needed, I used the native code compiler (ocamlopt) with Visual C ++ (I have Visual Studio 10 installed) and Microsoft Assembler MASM version 8 (MinGW is also installed); I also set path variables for OCaml (c: \ ProgramFiles \ Ocaml \ bin), MinGW (c: \ ProgramFiles \ MinGW \ bin) and MASM (C: \ masm32 \ bin). However, despite all my efforts and a great search, I can not get around the error message
**Fatal error, Cannot find file "crt2.o" File "caml_startup", line 1, characters 0-1: Error: error during linking.
unless I put the HelloWorld.ml file in the lib folder from MinGW where the crt2.o file is located. I understand that the answer may be simple, but I'm stuck. Any help would be greatly appreciated.
source share