You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile and link the three files with clang++-16 main.cc main2.cc
Observe the error message:
/usr/bin/ld: /tmp/main-3e89ac.o: in function `main':main.cc:(.text+0x1a): undefined reference to `void EigenSparseLU<double>::Apply<double>(Ref<Matrix<double>, Vector<double>::IsVectorAtCompileTime?(0) : (1)> const&) const'clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note that this only fails with Clang 16 (I don't know about trunk). It works with Clang 14 and Clang 15. Also GCC compiles it fine.
The text was updated successfully, but these errors were encountered:
Compiler Information
Steps to reproduce
main.h
main.cc
main2.cc
clang++-16 main.cc main2.cc
Note that this only fails with Clang 16 (I don't know about trunk). It works with Clang 14 and Clang 15. Also GCC compiles it fine.
The text was updated successfully, but these errors were encountered: