Skip to content

Instantly share code, notes, and snippets.

@crbinz
Created February 12, 2021 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crbinz/5c7c297e0ea081be391e9c0f326043c5 to your computer and use it in GitHub Desktop.
Save crbinz/5c7c297e0ea081be391e9c0f326043c5 to your computer and use it in GitHub Desktop.
[cbinz@machine julia_embed_example]$ make
g++ -std=gnu99 -I'/opt/julia-1.5.3/include/julia' -fPIC -L'/opt/julia-1.5.3/lib' -Wl,--export-dynamic simple.cpp
-Wl,-rpath,'/opt/julia-1.5.3/lib' -Wl,-rpath,'/opt/julia-1.5.3/lib/julia' -ljulia -o simple
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::append(char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__atomic_futex_unsigned_base::_M_futex_notify_all(unsigned int*)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::_V2::error_category::equivalent(int, std::error_condition const&) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::_V2::error_category::_M_message[abi:cxx11](int) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())@GLIBCXX_3.4.22'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::_V2::system_category()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned long, unsigned long, char const*) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned long, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__future_base::_State_baseV2::_Make_ready::_M_set()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::swap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, char)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::_V2::error_category::~error_category()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::_V2::error_category::default_error_condition(int) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::_V2::generic_category()@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::_V2::error_category::equivalent(std::error_code const&, int) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_not_of(char, unsigned long) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::push_back(char)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/libjulia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/opt/julia-1.5.3/lib/julia/libLLVM-9jl.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char, unsigned long) const@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make: *** [simple] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment