alecjacobson/computer-graphics-bounding-volume-hierarchy

Unresolved external symbol with Eigen::Matrix3d::determinant() and Eigen::Vector3d::cross(v)

Closed this issue · 2 comments

Platform: Windows 10 with Visual Studio 2019
I have recursively clone all the components

For ray_intersection_triangle.cpp, I directly copy-paste the code I have during HW2(which works at that time), but can't go through the building session in current solutions. The Error Code is LNK 2019 which means the determinant() function is not supported there.
A similar error happened with Vector3d.Cross() and Vector3D.Dot(), which is crucial but I have no idea why.
I've detailly checked the data and turned out to be that all the data are legal and being correctly instantiated before use. It is kinda weird for those things to happen.

Below are the error message prints
InkedEigen_determinant_LI

Eigen_cross

Hi Alec

Thanks for the reply, this solves the problem.
Shall I Close this issue or keep this open as a reference?
Also for future usage, is there any safe way to include all the submodules from Eigen to avoid similar mistakes, or better not to do so?