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

This topic is 4520 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

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?

Share on other sites
Shouldn't that be LIBPATH instead of PATH?

Share on other sites
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?

1. 1
Rutin
67
2. 2
3. 3
4. 4
5. 5

• 11
• 11
• 21
• 10
• 33
• Forum Statistics

• Total Topics
633438
• Total Posts
3011882
• Who's Online (See full list)

There are no registered users currently online

×