Skip to content
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

Missing include #15

Closed
cloudhan opened this issue Aug 16, 2020 · 1 comment · Fixed by #16
Closed

Missing include #15

cloudhan opened this issue Aug 16, 2020 · 1 comment · Fixed by #16

Comments

@cloudhan
Copy link
Contributor

If you add target_compile_definitions(yomm2 PUBLIC YOMM2_ENABLE_TRACE=0) to top level CMakeLists.txt, and build the project's example, it will results

D:\yomm2\src\yomm2.cpp(858,42): error C2079: 'discard_log' uses undefined class 'std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>>' [D:\yomm2\build\src\yomm2.vcxproj]
D:\yomm2\src\yomm2.cpp(864,50): error C2446: ':': no conversion from 'std::ostringstream' to 'std::ostream' [D:\yomm2\build\src\yomm2.vcxproj]

Compiler:

Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.
@jll63
Copy link
Owner

jll63 commented Aug 16, 2020

Thanks for the report and the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants