Bart Janssens

Results 264 comments of Bart Janssens

If I understand correctly, this is more or less what is done in this test here: https://github.com/JuliaInterop/libcxxwrap-julia/blob/main/test/test_module.cpp

I have to streamline this some more, ideally we should be able to call the `CxxWrap.readmodule` function as a first step, but this is currently not possible since it assumes...

Hi, With cxxWrap I recommend making a function that accepts a `SafeCFunction` like this: https://github.com/JuliaInterop/libcxxwrap-julia/blob/d4192fe3ea20829bd399d812863abd8303f9bcab/examples/functions.cpp#L243 The pointer is best generated in Julia, as here in this example: https://github.com/JuliaInterop/CxxWrap.jl/blob/b1c07f1b12f15363ab7e712b5152ca9ff014b992/test/functions.jl#L119

I think it should work like this: ```jl function Test(eg::CxxRef{CppTypes.Database}) :: Cvoid println("im test function") end ptr = @safe_cfunction(Test, Cvoid, (CxxRef{CppTypes.Database},)) println(typeof(ptr)) test_safe_cfunction(ptr) ``` ```cpp types.method("test_safe_cfunction", [](jlcxx::SafeCFunction f_data) { auto...

Are you building against a Julia compiled with the same compiler? This kind of error typically appears when there are subtle incompatibilities between the compiler used to build Julia itself...

What happens if you compile libcxxwrap-julia with `JLCXX_USE_TYPE_MAP` defined?

I just tried using clang on Arch linux, and I see the same error using the default settings. To get around it, you need to compile libcxxwrap-julia and your own...

This has also been reported here now: https://github.com/JuliaInterop/CxxWrap.jl/issues/435 I can reproduce it but I have no idea what causes this.

Looks like this was fixed on the WrapIt side, but I admit that when adding these two methods for member functions I didn't consider the case of operators. Maybe for...

Based on the screenshot I have no idea, can you give some more details on what you are trying to do and how to reproduce this?