Compile transitive dependency issues #1554
Replies: 1 comment 2 replies
-
You are trying to use an unsigned |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
First of all, I created a shared library lib_A, linking to Ginkgo. In library lib_A, I have a class in which func_a using following codes to generate a Csr-type matrix.
auto A = gko::share(mtx::create(exec));
A.get()->read(matrix_assembly_data);
There is no issue when i compile all codes and add them to lib_A.
Secondly, I created another shared libary lib_B. Libray lib_B is linked to lib_A. In somewhere Lib_B calls the func_a in lib_A. Then compilation failed to generate the lib_B, Error as below.
/usr/bin/ld: CMakeFiles/test_ginkgo.dir/test_ginkgo.cpp.o:(.data.rel.ro._ZTVN3gko6matrix3CsrIdmEE[_ZTVN3gko6matrix3CsrIdmEE]+0x80): undefined reference to `gko::matrix::Csr<double, unsigned long>::apply_impl(gko::LinOp const*, gko::LinOp const*, gko::LinOp const*, gko::LinOp*) const'
Beta Was this translation helpful? Give feedback.
All reactions