Skip to content

libsass compilation fails on Visual Studio 2017 #2627

Closed
@Nimce

Description

@Nimce

Trying to compile libsass on Visual Studio 2017 on Windows fails with error(s):

operation.hpp(191): error C2027: use of undefined type 'Sass::Selector_List'
operation.hpp(191): error C2027: use of undefined type 'Sass::Complex_Selector'
...

(Errors are repeating themselves, just with different classes).

I'm not very familiar with the code, but changing typeid to use x instead of *x:

throw std::runtime_error(msg + typeid(*x).name());

to:

throw std::runtime_error(msg + typeid(x).name());

Allows libsass to compile successfully.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions