JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
755 stars 107 forks source link

Can I use Cxx REPL while by including #492

Open sprhawk opened 2 years ago

sprhawk commented 2 years ago

I use a bootstrap.jl to simplify my julia environment startup, like this:

  # bootstrap.jl
  PREFIX = ENV["PREFIX"]

  using Cxx
  addHeaderDir(joinpath(PREFIX, "include"))
  addHeaderDir("/usr/include")
  addHeaderDir("/usr/include/eigen3")

and I start julia by julia-1.3.1 --project=demo -i -e 'include("bootstrap.jl")'

But by this method, I cannot activate Cxx REPL by < shortcut.

How can I activate Cxx REPL in this manner?

If I do not use a bootstrap.jl, just start julia-1.3.1 and using Cxx there, I can activate Cxx REPL by <