-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
linking error #51
Comments
Could you please provide the error message? |
Oh, sorry for that. Here are some details. I'm currently working on a ubuntu 18.04 LTS system. I have already installed
After that, I added the code above in my own project's
errored out following messages
Any suggestions? |
It is stated in the README.md that this project is a header only library:
So no library will be built, thus no linking library. The headers should be placed some where on the general include search, |
yeah, this is something coming along with the new cmake stuff. ngankhoa is right, not linking xtensor-io (but rather the dependencies, like OpenImageIO, ... should help in this case). Just adding hte xtensor-io_INCLUDES to your include directories should help. |
I also have linking issues when using the example from the documentation #include <xtensor/xio.hpp>
#include <xtensor-io/xhighfive.hpp>
int main()
{
xt::xtensor<double,2> A = xt::ones<double>({10,5});
xt::dump_hdf5("example.h5", "/path/to/data", A);
A = xt::load_hdf5<xt::xtensor<double,2>>("example.h5", "/path/to/data");
std::cout << A << std::endl;
return 0;
} I think I compile the example properly, but I cannot get some types apparently defined somewhere. The error is below
|
I'm trying to compile a project with the
xtensor-io
library but I get an linking error asI have already included
in my
CMakeLists.txt
. However, it just didn't work.Can someone help me?
The text was updated successfully, but these errors were encountered: