Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Chico Lustosa
    @chicolustosa_twitter
    and reinstalled
    make install
    [100%] Built target complex_bessel
    Install the project...
    -- Install configuration: ""
    -- Installing: /usr/lib/libcomplex_bessel.dll.a
    -- Installing: /usr/lib/cygcomplex_bessel-0.6.0.dll
    -- Up-to-date: /usr/include
    -- Up-to-date: /usr/include/complex_bessel.h
    -- Up-to-date: /usr/include/complex_bessel_bits
    -- Up-to-date: /usr/include/complex_bessel_bits/besselFunctions.h
    -- Up-to-date: /usr/include/complex_bessel_bits/fortranLinkage.h
    -- Up-to-date: /usr/include/complex_bessel_bits/sph_besselFunctions.h
    -- Up-to-date: /usr/include/complex_bessel_bits/utilities.h
    but the fortran functions remain undefined.
    sorry to be bothering you and thanks for all the help. I really need this complex bessel functions.
    $  g++ hankeltest.cpp -o besseltest.exe
    /tmp/ccsK4FbU.o:hankeltest.cpp:(.text$_ZN9sp_bessel8hankelH1EdSt7complexIdE[_ZN9sp_bessel8hankelH1EdSt7complexIdE]+0xea): undefined reference to `zbesh_wrap'
    /tmp/ccsK4FbU.o:hankeltest.cpp:(.text$_ZN9sp_bessel8hankelH1EdSt7complexIdE[_ZN9sp_bessel8hankelH1EdSt7complexIdE]+0xea): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `zbesh_wrap'
    collect2: error: ld returned 1 exit status
    Joey Dumont
    @joeydumont
    You have to link against the library.
    g++ hankeltest.cpp -o besseltest.exe -lcomplex_bessel.
    It might be -lcygcomplex_bessel-0.6.0 in Cygwin, I am not exactly sure.
    I'm not sure what your project is, but you could also evaluate Bessel functions with real orders and complex arguments with scipy.
    Chico Lustosa
    @chicolustosa_twitter
    Okay, I'll check it out.
    Now, I can create the file but was not able to load it
    do I need to link against the library to run the .exe also?
    Joey Dumont
    @joeydumont
    No, linking is part of the compilation process.
    Chico Lustosa
    @chicolustosa_twitter
    ./besseltest.exe
    C:/cygwin64/home/Chico/complex_bessel-release-0.6/tests/besseltest.exe: error while loading shared libraries: cygcomplex_bessel-0.6.0.dll: cannot open shared object file: No such file or directory
    Joey Dumont
    @joeydumont
    This looks like a cygwin configuration issue.
    It'll have to wait until I can test on a Windows machine.
    Chico Lustosa
    @chicolustosa_twitter
    Okay. Thank you very much for all the help. I am looking in to alternatives to your library, but seems to be the easyest one so far.
    Joey Dumont
    @joeydumont
    To my knowledge, it is the only C++ library that evaluates Bessel functions with complex arguments.
    However, scipy, the Python scientific framework, is much nicer than this.
    Chico Lustosa
    @chicolustosa_twitter
    Yes, but will also be a chalenge to build it on windows, it seems.
    Yours also works for complex order functions?
    Joey Dumont
    @joeydumont
    No. Real orders, complex arguments.
    It shouldn't be too hard to install on Windows if you use Anaconda, or a similar Python package manager. See https://www.scipy.org/install.html.
    Chico Lustosa
    @chicolustosa_twitter
    But that is all in Python, no? There is no simple way to use this in my C++ code.
    Joey Dumont
    @joeydumont
    That is correct. I wasn't sure of the nature of your project, though.
    Joey Dumont
    @joeydumont
    @chicolustosa_twitter I am not sure what causes this error. I have tested on both MSYS and Cygwin, and I have the same error on both. This tells me this is a Windows issue.
    If your project can be built on Linux, I'd suggest using that for the time being. I won't have time to diagnose the issue further until much later, probably the summer.
    Sorry for the inconvenience.
    If you do find the issue though, please report back here so I can fix it.