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

Failing to load a dynamic library that loads in plain cling #71

Closed
nthiery opened this issue Oct 24, 2017 · 3 comments
Closed

Failing to load a dynamic library that loads in plain cling #71

nthiery opened this issue Oct 24, 2017 · 3 comments

Comments

@nthiery
Copy link
Contributor

nthiery commented Oct 24, 2017

I am trying to load a dynamic library, and am getting a failure:
image

The same commands work with plain cling from the same conda environment, in the same directory.
MLV is from debian package libmlv0-dev. One thing that may have an influence is that MLV.h is not in the system dir but in the same directory as the notebook. In any cases, the error message looks dubious.

I could try with other libraries if useful.

@SylvainCorlay
Copy link
Member

SylvainCorlay commented Oct 24, 2017

The dot versiobs of the cling commands don't work with the kernel.

Instead, you can use the cling pragmas

For loading a library, use

#pragma cling load("MLV")

Which is also more c++ compliant. Examples available in xtensor-blas.

@nthiery
Copy link
Contributor Author

nthiery commented Oct 24, 2017

That worked! Perfect. Thanks a lot Sylvain.
Micro suggestion: could the dot version of the cling commands raise an explicit error in the kernel, suggesting to use the pragma as you just did?

@SylvainCorlay
Copy link
Member

OK, closing and opening a separate issue for the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants