-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[yaml-cpp] warnings when using dynamic library #4205
Comments
It has also been reported into yaml-cpp but empty_scalar static member (in node_data.h) misses a YAML_CPP_API (to dllexport it). yaml-cpp\node\detail\node_data.h(84): instead of: another, better change would be to declare this as a static member function returning a const ref to a static var: HTH |
It seems that the warnings were left in knowingly (#1621) |
Hi @HarryDC , thanks for reporting this issue. |
Problem is not fatal but I would really like to get rid of the noise to my compilation output. |
@jeanga |
When using yaml-cpp built as a dynamic library under visual studio there are warning issued C4251 (needs to have dll interface) and C4275 (non-dll interface used as base for dll-interface). This seems to stem from an action done in the portfile
When building yaml-cpp the portfile patches the file dll.h lines 58-64
This probably doesn't matter on static builds but for dynamic builds this cause the dll.h file to define
unconditionally, which in turn causes visual studio to issue a warning when using the yaml-cpp file. This block was introduced last year. I am assuming to fix another issue but there isn't really any explanation in the log, i'd just remove the block from the portfile, but it's hard to know what might get broken. Additionally it doesn't look like
YAML_CPP_DLL
gets defined in the portfile on dynamic builds. That should probably be passed tovcpkg_configure_cmake
The text was updated successfully, but these errors were encountered: