Bart Janssens

Results 162 comments of Bart Janssens

Wrappers built with CxxWrap need to be compiled at least with `-std=c++14`, higher should be fine too.

You need to add a new type to the libcxxwrap-julia STL library, here is an example diff of what was needed for `std::valarray`: https://github.com/JuliaInterop/libcxxwrap-julia/commit/47a760fab8a03551fb06c785a0d98280e89a151f And then the Julia interface is...

Hi, Using `jlcxx::Array` is fine, but there is also a way to construct an `ArrayRef` directly from memory allocated on the C++ side, transferring ownership to Julia: ```c++ jlcxx::ArrayRef y(jlcxx::make_julia_array(new...

Yes, the difference between ArrayRef and Array has become a bit artificial. The idea was for Array to be for Julia arrays created on the C++ side, but this is...

Yes, that's exactly it, thanks for replying Josh. To expand a bit on this, `__init__` is now required because precompilation is on by default in Julia 1.0. Function pointers are...

I think this is an rpath issue, in my CMakeLists.txt I typically have, after the `find_package(JlCxx)`: ```cmake set(CMAKE_MACOSX_RPATH 1) set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib;${JlCxx_DIR}/../") ``` Setting the environment variable `LD_LIBRARY_PATH` to contain the...

Yes, this is known and unfixable, it's a gcc bug: https://github.com/JuliaLang/julia/issues/28325 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64243 Do you need this functionality on Win64? If so, the only workaround I am aware of is to...

If `A` is consistently passed as a `shared_ptr`, it is best to immediately make its Julia constructor return one: ```c++ namespace jlcxx { template struct DefaultConstructible : std::false_type {}; }...

It should always be OK to return a shared pointer from the constructor, conversion from shared pointer to value is done automatically for functions that take values or references as...

Are you sure you are linking against libcxxwrap-julia? There is a sample CMakeLists.txt here: https://github.com/barche/libfoo/blob/master/CMakeLists.txt Also, you have to link against a libcxxwrap that you have compiled yourself. Another alternative...