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

Actually cross platform UART code #4

Open
4 tasks
ArcaneNibble opened this issue Nov 29, 2017 · 1 comment
Open
4 tasks

Actually cross platform UART code #4

ArcaneNibble opened this issue Nov 29, 2017 · 1 comment

Comments

@ArcaneNibble
Copy link
Contributor

  • Windows
  • macOS
  • BSD?
  • Android??
@bvernoux
Copy link
Contributor

bvernoux commented Sep 19, 2020

Issue to build the actual code with MSYS2 / MINGW64 related to UART.cpp code
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
...
Error

\home\Ben\scopehal-apps\lib\xptools\UART.cpp:75:9: error: invalid conversion from 'int' to 'FILE_DESCRIPTOR' {aka 'void*'} [-fpermissive]
   75 |  , m_fd(-1)
      |         ^~
      |         |
      |         int

Quick fix was to replace m_fd(-1) by m_fd(INVALID_HANDLE_VALUE) (to be checked if that is correct but it build at least)

azonenberg added a commit that referenced this issue Sep 20, 2020
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

2 participants