List Info

Thread: "ocaml_beginners"::[] Error during linking




"ocaml_beginners"::[] Error during linking
user name
2006-07-30 23:02:34
I used ocaml-3.09.0-win-mgw.exe to install OCaml under
windows 2000.  When compiling this program

  print_string "Hello.\n" ;;

this error occurs:

C:\info\source\ocaml>ocamlopt -verbose hello.ml -o
hello.exe
+ as -o "hello.o"
"C:\temp\camlasm39afd5.s"
+ as -o "C:\temp\camlstartupe399ed.o"
"C:\temp\camlstartup3b99e7.s"
+ gcc -mno-cygwin   -o "hello.exe"
-I"C:\bin\ObjectiveCaml\lib" 
"C:\temp\camlstartupe399ed.o"
"C:\bin\ObjectiveCaml\lib\std_exit.o"
"hello.o"
"C:\bin\ObjectiveCaml\lib\stdlib.a"
"-LC:\bin\ObjectiveCaml\lib"
"C:\bin\ObjectiveCaml\lib\libasmrun.a"
Error during linking

All of the files referenced by gcc exist except for
"C:\temp\camlstartupe399ed.o".  Perhaps gcc
automatically
deleted it.

Using ocamlc is fine:

C:\info\source\ocaml>ocamlc hello.ml -o hello.exe

produces a good executable.

C:\info\source\ocaml>ocamlopt -v
The Objective Caml native-code compiler, version 3.09.0
Standard library directory: C:\bin\ObjectiveCaml\lib

I have installed the following Cygwin packages:
binutils, gcc-core, gcc-mingw-core, mingw-runtime, w32-api.





Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http:/
/groups.yahoo.com/group/ocaml_beginners/

<*> To unsubscribe from this group, send an email to:
    ocaml_beginners-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )