Quantcast
Channel: OCaml - Topics tagged dune
Browsing all 517 articles
Browse latest View live

OCaml C interface undefined reference to "caml_local_roots"

Hi ! I’m trying to compile a very simple C++ project for OCaml. Here is what I did so far: #include <iostream> #include <string> #include "osm.hpp" extern "C" { #include...

View Article


[Dune] Problems with a string return by Dune

Hello everyone, First of all, sorry for my poor English, I’m pretty new to Dune so I may not fully understand what you reply to this topic and thanks a lot in advance. So the problem I try to solve is...

View Article


Using ocamldebug with dune

I have a problem trying to use ocamldebug on programs compiled with dune. Suppose I have the following dune project: <root>/src/lib/foo.ml /dune <root>/example/main.ml /dune where foo.ml...

View Article

Pre-process ppx on testing only

Hi everyone ! I was wondering if with it was possible to preprocess a file only when dune runtest is called. I have a ppx that inline tests inside .ml files, but I dont especially wan’t to keep that...

View Article

Image may be NSFW.
Clik here to view.

Looking for open source OCaml & ErlangVM advisor

This is for OpenTransplant a new open source healthcare community project that hopes to one day be a complete reference implementation of the Organ Procurement and Transplantation Network (OPTN). This...

View Article


Image may be NSFW.
Clik here to view.

Building Ahrefs codebase with Melange

At Ahrefs, we make extensive use of OCaml and ReScript —previously known as BuckleScript. So we have been following the latest developments in the ReScript ecosystem with great interest. A few months...

View Article

Lightweight OCaml Docker Images created by dune with Multi-Stage Builds

I’ve written an article of Docker multi-stage Build for lightweight OCaml application using dune. I refered this article(Lightweight OCaml Docker Images with Multi-Stage Builds) and customized to use...

View Article

Stubs c - shared and static libs

Hi, I’m currently working with an ocaml library that uses c++ binding. When I build the library from the sources, in the build repository, there are both .so and .a file. However, when I install it...

View Article


Pin-depends in dune

Hi, I was wondering if there is a way to use pin-depends in dune-project in the package stanza? I couldn’t find it in the dune documentation. 3 posts - 2 participants Read full topic

View Article


[ANN] Dune 2.9.0

Dear all, on behalf of the Dune team I’m pleased to announce the release of Dune 2.9.0. This is the last release on the Dune 2.x series and could be considered a maintenance release as it mostly...

View Article

Use C binding with PPX and dune

Hi, I’m trying to write a ppx-rewriter for my library. The issue is that my library need to get the flags for the C++ bindings I’m using. When I import my library in an example with the following...

View Article

Warning 16: Optional argument cannot be erased

I’m not sure were to start. I just setup a new machine. It has been a while since I’ve had to do that. A piece of code I have been working on contains a several optional arguments. I never had a...

View Article

Common lib reference in dune

Hi, I have the following project structure . - My App -- common -- dune -- mylib.ml -- mylib.mli -- downloader -- dune -- main.ml -- decoder -- dune -- main.ml How could i tell dune to use...

View Article


Conditional libraries with dune and cppo

Hi everyone, I have a library that I’d really like to have some form of conditional compilation for, and I’m not entirely sure how to get dune to handle this. The rough setup is as follows: We have a...

View Article

Dune subst in parent git repo

I’m packaging some opam packages for alpine linux, which tracks build scripts in one big repo. Running dune build -p <package> and dune install <package> --destdir=<pkgdir> after...

View Article


Image may be NSFW.
Clik here to view.

Blog post: A new general computation model for Dune

dune.build A new general computation model for Dune Dune is fast. However, if you try to use Dune to develop in a big workspace such as the OCaml platform repository, you will notice... A blog post...

View Article

Dynlink with static binary

hi all. I want to use dynlink with a statically linked binary. my dune file looks like (env (static (flags (:standard -ccopt -static )))) (executable (name main) (libraries dynlink) ;(link_flags...

View Article


When exactly does dune generate .opam-files?

In the documentation on generating .opam files, it says dune will generate .opam files if the dune-project file sets (generate_opam_files true) , and declares one or more packages as per, Declaring a...

View Article

Blog: General thoughts on Ocaml & Haskell and OCaml's (supposedly) pathetic...

I’ve written a blog titled “General thoughts on Ocaml & Haskell and OCaml’s (supposedly) pathetic state of tooling” I wrote this in partly in response to some of the views expressed in Expanding...

View Article

No config found for file... Try calling `dune build`

For posterity, hoping somebody in the future finds this when they hit the same problem: I just spent a painful ~hour trying to figure out why emacs wasn’t happy with my .ml files in a new project. I...

View Article
Browsing all 517 articles
Browse latest View live