Skip to content

cisstVector Build Fails WhenUsing ClangCl with MSVC 2019 #76

Open
@DeveloperPaul123

Description

@DeveloperPaul123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions