Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8519611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:17:52+00:00 2026-06-11T06:17:52+00:00

I need to add the csv module in one module compute.ml of an OCAML

  • 0

I need to add the csv module in one module compute.ml of an OCAML package.(see discussion ocaml hash from mysql)

Do you know of a simple way to amend the makefile (it is a complex document in my case and I don’t think that I can fully rewrite it or switch to ocamlfind install) to enable a compilation without “Unbound value Csv.load” error messages?

ie can I include a new library inside an existing stable Ocaml package?

modified module : compute.ml,

modification;

 let data = Csv.load ("foo.csv")
         ....

error message during compilation :

camlp5r ../wserver/pa_macro5.cmo -DUNIX -o compute.ppo compute.ml
ocamlopt.opt -warn-error A -I ../wserver -I ../sally -I +camlp5 -c -impl compute.ppo
File "compute.ml", line 110, characters 13-21:
Error: Unbound value Csv.load

Thanks for help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:17:54+00:00Added an answer on June 11, 2026 at 6:17 am

    You have to tell ocamlopt where to look for csv.cm{i,x} files with the appropriate -I option, like the ones you already have at the end of your command line.
    If the library lies in a subdirectory of OCaml’s standard library (as given by ocamlc -where), you can use
    -I +csv_dir, as is done for camlp5 in your example. Otherwise, you’ll have to provide the full path.

    Note that this is not the only modification that you’ll have to do: you’ll also have to add csv.cmx (or .cmxa) on the command line that perform the final link of your application/library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to add columns to an existing csv file ,but i can't find
I need to export my query results from SQL Server 2008 to a CSV
I need to upadte, add and delete rows from the auth.models.User table, unfortunately... when
I know this is right in front of me, but I need to add
I have a flat CSV file which I need read from to end up
I'm running a simple command: Import-CSV $myfile | ForEach=Object {Add-AdGroupMember -Identity $mygroup -Members $_.Alias}
I need to read data from a CSV file & display it as a
I am trying to export data from my MySQL database to multiple CSV files
I'm supposed to add data from my csv file into my database. I have
I'm writing a simple import application and need to read a CSV file, show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.