-
Notifications
You must be signed in to change notification settings - Fork 318
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
[MSVC] compiling examples/adrv9002-iiostream.c #832
Comments
yeah, we really only compile / run the examples on Linux. Do you need them on Windows? |
@rgetz No, I do not need anything from IIO besides the |
The library itself is cross-platform, the examples are just that, examples. They aren't even built by default. |
But why cannot gcc on Linux use this form too: #define error(fmt, ...) printf("%s, %u: ERROR: " fmt, __func__, __LINE__, __VA_ARGS__) I mean, what's the advantage of the current overly complex definitions? |
@gvanem with this macro definition, if you call just We are doing basically the same thing in the dev branch, and this builds fine under Visual Studio: |
The pre-processor in MSVC 2019 (ver. 19.29.30139) seems brain-dead.
When compiling
examples/adrv9002-iiostream.c
, I get lots these errors:In expansion of the macro
info("adrv9002 bandwidth: %lld\n", val);
. The pre-processed output really is:But patching for
_MSC_VER
(but not clang-cl):works for me:
main, 263: ERROR: Could not create IIO context
.The text was updated successfully, but these errors were encountered: