Skip to content

ocamljava error during linking on Windows; ocaml, ocamlc, & ocamlrun all work #13

@ghost

Description

First, thanks for a Java version of OCaml. For months I've been trying to find one programming language that's a good compromise between a number of things: functional, to go along with theorem proving, but with the potential for more easily tapping into parallel programming. I noticed your ForkJoin, MapReduce, etc., and since OCaml-Java is tied into Java, there's the possibility of Jcuda.

Now the problems. The second problem is the important one.

  • An easy problem is that the batch files don't work if there are spaces in the path. That's because there are no quotes around the jar file argument. A normal line looks like this:

    "%OCJ_JAVA%" -Xss8M -jar %~dp0/../lib/ocamlc.jar %*

It's not a problem, really. I just put the argument in quotes.

  • The reason I'm submitting this is because ocamljava gives the following error due to linking:

    E:\E_1\02-p\1o_jv_w rk_test> ocamljava -o "E:\E_1\02-p\1o_jv_w rk_test\hello_world.jar" "E:\E_1\02-p\1o_jv_w rk_test\hello_world.ml"
    File "E:\E_1\02-p\1o_jv_w rk_test\hello_world.ml", line 1:
    Error: Error during linking:
    unable to open archive ("\ocamljava-2.0-alpha2\lib\ocaml\ocamlrun.jar")

Here is some additional information.

  • I'm not having any problems like that for ocaml, ocamlc, and ocamlrun, which are the only other commands I've used.
  • If I compile and link in two steps, it still doesn't work.
  • I get the same error with ocamljava-2.0-alpha1.
  • I don't get that error with ocamljava-2.0-early-access11.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions