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

'LIBM2K_ENABLE_LOG' error with MSVC #333

Open
gvanem opened this issue Oct 26, 2022 · 0 comments
Open

'LIBM2K_ENABLE_LOG' error with MSVC #333

gvanem opened this issue Oct 26, 2022 · 0 comments

Comments

@gvanem
Copy link

gvanem commented Oct 26, 2022

Enabling the -DLIBM2K_ENABLE_LOG flag, causes this compile error with MSVC-2022:

context_impl.cpp(118): error C2872: 'INPUT': ambiguous symbol
f:\gv\WinKit\Include\10.0.22621.0\um\winuser.h(6144): note: could be 'tagINPUT INPUT'
F:\gv\dx-radio\gnuradio\gv-build\include\libm2k/utils/enums.hpp(37): note: or       'libm2k::utils::DEVICE_DIRECTION INPUT'
context_impl.cpp(118): error C2275: 'INPUT': expected an expression instead of a type
context_impl.cpp(127): error C2872: 'INPUT': ambiguous symbol
...

Since <winuser.h> was pulled in via <glog/logging.h> and <windows.h>.
I fail to understand how to fix this.

Perhaps include/libm2k/utils/enums.hpp could use less universal names like m2k_INPUT etc.?

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

No branches or pull requests

1 participant