Compiling OCaml with ocamlopt - mspdb80.dll/advapi32.lib missing

Started by
1 comment, last by eighty 17 years, 9 months ago
Okay, so I'm trying to compile a simple hello world-program.
ocaml hello.ml
and
ocamlc hello.ml -o hello.exe
both work fine. When I do this:
ocamlopt hello.ml -o hello.exe
cl.exe says it can't find mspdb80.dll. I find the file in Microsoft Visual Studio 8\Common7\IDE, so I add it to my path, and try the above line again, and I get the error
LINK : fatal error LNK1181: cannot open input file 'advapi32.lib'
I find the file in Microsoft Visual Studio 8\VC\PlatformSDK\Lib, so I add that directory to my path, but the error remains! What am I doing wrong?
Advertisement
Shouldn't that be LIBPATH instead of PATH?
I didn't have one of those, and it didn't change anything, but I added the directory to the OCAMLLIB path, which already existed. Now, however, I get the error
>> Fatal error: cannot open Pervasives.cmiFatal error: exception Misc.Fatal_error
The directory where that file is is already in the OCAMLLIB variable, but also adding it to the regular PATH variable didn't make the error go away. What now?

This topic is closed to new replies.

Advertisement