Cxx.jl icon indicating copy to clipboard operation
Cxx.jl copied to clipboard

New clang instance

Open TrebstRegistrator opened this issue 4 years ago • 2 comments

I try to do what is suggested in the documentation, i.e. __current_compiler__ = Cxx.new_clang_instance(), but I get

cannot assign a value to variable CxxCore.__current_compiler__ from module Main

How can I reset the current cxx session/get a new clang instance?

TrebstRegistrator avatar Jan 30 '20 20:01 TrebstRegistrator

I cannot reproduce on macOS:

julia> using Cxx
[ Info: Precompiling Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2]

julia> __current_compiler__ = Cxx.new_clang_instance()
Cxx.CxxCore.CxxInstance{2}()

Gnimuc avatar Jan 31 '20 02:01 Gnimuc

It seems to be a Cxx + IJulia issue. It runs fine in the REPL but not in a Jupyter notebook (on Windows10).

carstenbauer avatar Jan 31 '20 05:01 carstenbauer