jhu-cisst / cisst

JHU ERC CISST Library
http://github.com/jhu-cisst/cisst/wiki
Other
64 stars 47 forks source link

cisstVector Build Fails WhenUsing ClangCl with MSVC 2019 #76

Open DeveloperPaul123 opened 5 years ago

DeveloperPaul123 commented 5 years ago

When building cisst with ClangCl in MSVC 2019, the cisstVector build fails with the following error:

E:\Repositories\cisst\cisst-src\cisstVector/vctEulerRotation3.h(384,1): Error:  explicit instantiation of undefined function template 'vctEulerFromMatrixRotation3'
2> expanded from macro 'VCT_DECLARE_EULER_CONVERSION_TEMPLATES'
2> explicit instantiation refers here
2> expanded from macro 'VCT_DECLARE_EULER_CONVERSIONS'

The error is repeated multiple times. I can post the full error output if needed.

It seems that this is due to a mis-identification of MSVC as the compiler since clang-cl is meant to be a drop in replacement for cl.

See here for more info on using clang with MSVC 2019.