Skip to content

Is it safe to disable MSVC compiler warning C4251? #307

Open
@kyllingstad

Description

@kyllingstad

In our CMakeLists.txt we specify the MSVC compiler switch /wd4251, which disables warning C4251. The warning is:

'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'

It was I who disabled it, and I think it is OK to do so, but nevertheless, it would be good if others could think of it too. It's kind of an ominous warning.

CSE Core (and CSE CLI) won't compile without it, at least not without other modifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion neededLet's have a discussion about thisquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions