Jump to content
  • Advertisement
Sign in to follow this  

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.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, so I'm trying to compile a simple hello world-program.
ocaml hello.ml
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 this post

Link to post
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.cmi
Fatal 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?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!