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

Problem using boost c++ libraries, kills julia. #481

Open
Ceboc opened this issue Aug 17, 2020 · 0 comments
Open

Problem using boost c++ libraries, kills julia. #481

Ceboc opened this issue Aug 17, 2020 · 0 comments

Comments

@Ceboc
Copy link

Ceboc commented Aug 17, 2020

I was using Cxx to call a function from boost library, until some days ago, after a SO update (i'm using KDE neon), the code now kills julia and sends me this error:

LLVM ERROR: Program used external function '_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev' which could not be resolved!

and this is my code

module BesselYzero
# Function that returns zeros of bessel Y function

using Cxx;

if Sys.iswindows()
    const pathboost = "C:\\boost_1_73_0";
    addHeaderDir(pathboost, kind=C_System);
end

export besselyzeros

cxx""" 
    #include <iostream>
    #include <boost/math/special_functions/bessel.hpp>
    #include <boost/multiprecision/cpp_dec_float.hpp>
    typedef boost::multiprecision::cpp_dec_float_50 float_type;
    """

cxx"""
    double besyzero2(double x, int y) {
    return boost::math::cyl_neumann_zero(x, y);
    }
    """
    besselyzeros(nu, ind) = @cxx besyzero2(Float64(nu), ind)

end

and here is the documentation of the function [https://www.boost.org/doc/libs/1_74_0/libs/math/doc/html/math_toolkit/bessel/bessel_root.html]

I thought that was an issue with the update process, so i tried with a clean installation, but the problem persist.

My return for versioninfo()

Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
@Ceboc Ceboc changed the title Problem using boost c++ libraries Problem using boost c++ libraries, kills julia. Aug 25, 2020
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

1 participant