You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 on PARITY_NONE (probably a conflict with same define specific to windows files ...)
[ 9%] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/scopehal.cpp.obj
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPIUARTTransport.h:39,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:61,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:/msys64/home/Ben/scopehal-apps/lib/xptools/UART.h: In member function 'bool UART::IsValid() const':
C:/msys64/home/Ben/scopehal-apps/lib/xptools/UART.h:75:16: warning: ordered comparison of pointer with integer zero [-Wextra]
75 | return (m_fd >= 0);
| ~~~~~^~~~
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:70,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:17,
from C:/msys64/home/Ben/scopehal-apps/lib/xptools/Socket.h:42,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPISocketTransport.h:39,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:57,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h: At global scope:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected identifier before '(' token
51 | PARITY_NONE,
| ^~~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected '}' before '(' token
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:54:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:50:2: note: to match this '{'
50 | {
| ^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:70,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:17,
from C:/msys64/home/Ben/scopehal-apps/lib/xptools/Socket.h:42,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPISocketTransport.h:39,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:57,
from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected ')' before numeric constant
51 | PARITY_NONE,
| ^~~~~~~~~~~
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:54:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:56:7: error: variable or field 'SetParityType' declared void
56 | void SetParityType(ParityType type)
| ^~~~~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:56:21: error: 'ParityType' was not declared in this scope
56 | void SetParityType(ParityType type)
| ^~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:59:2: error: 'ParityType' does not name a type
59 | ParityType GetParityType()
| ^~~~~~~~~~
The text was updated successfully, but these errors were encountered:
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 on PARITY_NONE (probably a conflict with same define specific to windows files ...)
The text was updated successfully, but these errors were encountered: