Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New clang instance #460

Open
TrebstRegistrator opened this issue Jan 30, 2020 · 2 comments
Open

New clang instance #460

TrebstRegistrator opened this issue Jan 30, 2020 · 2 comments

Comments

@TrebstRegistrator
Copy link

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?

@Gnimuc
Copy link
Member

Gnimuc commented Jan 31, 2020

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}()

@carstenbauer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants