I don’t know much, but a couple links that may help while waiting for answers from those more knowledgeable:
Thread about embedding Julia into C++ program:
https://discourse.julialang.org/t/unable-to-compile-simple-c-program-with-embedded-julia-1-0
Compiling Julia into a shared library: