Discussion:
OCaml & mingw: can't find libgcc
(too old to reply)
w***@yahoo.com
2009-02-09 21:56:22 UTC
Permalink
Using the mingw version of OCaml for windows and compiling
from the DOS-prompt, I get this error:

** Fatal error: Cannot find file "libgcc"
File "caml_startup", line 1, characters 0-1:
Error: Error during linking

although the file libgcc.a exists in
C:\temp\cygwin\lib\gcc\i686-pc-cygwin\3.4.4

Does an environmental variable need to be set?
w***@yahoo.com
2009-02-09 21:58:08 UTC
Permalink
Post by w***@yahoo.com
Using the mingw version of OCaml for windows and compiling
** Fatal error: Cannot find file "libgcc"
Error: Error during linking
although the file libgcc.a exists in
C:\temp\cygwin\lib\gcc\i686-pc-cygwin\3.4.4
Does an environmental variable need to be set?
This is compiling with ocamlopt, not ocamlc.
w***@yahoo.com
2009-02-11 20:01:29 UTC
Permalink
Post by w***@yahoo.com
Post by w***@yahoo.com
Using the mingw version of OCaml for windows and compiling
** Fatal error: Cannot find file "libgcc"
Error: Error during linking
although the file libgcc.a exists in
C:\temp\cygwin\lib\gcc\i686-pc-cygwin\3.4.4
Does an environmental variable need to be set?
This is compiling with ocamlopt, not ocamlc.
My cygwin installation was botched, probably because
I had deselected, selected, and reselected so many
packages.

When I re-installed cygwin, I left the defaults virtually
untouched. Now ocamlopt works.

Loading...