ON_GetMatrixSVD function is declared in .h file, but not defined in .cpp file?

Hellow everyone, I’m new here.These days I’m trying to use opennurbs_matrix to handle a linear system. Now I’m in trable, because the matrix is a rectangle matrix, so I want to use SVD method to find it’s left inverse, and thus get my lsq solution. But the ON_GetMatrixSVD function is declared in .h file, but not defined in .cpp file,so it didn’t pass the compile and result in “error LNK2019” and “fatal error LNK1120”, My opennurbs is 13/7/11 version. (T_T)
It’s very strange,isn’t it? I have no idea right now. So I really need your solutions and advice. Thank you! (^_^)

Hi Silibang,

The ON_GetMatrixSVD function is not available in the free openNURBS tookkit because it is not used to read and write Rhino 3dm files.

That said, trying to access the function should not result in a linking error. I’ve reported this as bug.

http://mcneel.myjetbrains.com/youtrack/issue/RH-33830

Thanks,

– Dale

Thank you for your reply!(^_^)And I have solved my problem by using “Eigen3”.Thank you very much!:slight_smile: