jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.78k forks source link

Compilation issue - YAML-CPP is exposing std types in dllexport classes #1233

Open slambon opened 8 months ago

slambon commented 8 months ago

When using YAML-CPP as dynamic library, the compilation is generating tons of warnings C4251: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251?view=msvc-170.

See more details about the problem: https://stackoverflow.com/questions/4145605/stdvector-needs-to-have-dll-interface-to-be-used-by-clients-of-class-xt-war

roncapat commented 7 months ago

Maybe duplicated of https://github.com/jbeder/yaml-cpp/issues/642?