An error occurred when compiling baresip-libre with vcpkg
Adela0814 opened this issue · 2 comments
Adela0814 commented
Environment:
windows x64
msvc 14.36.32532
Repro steps:
- git clone https://github.com/microsoft/vcpkg.git
- Enter the vcpkg directory and execute bootstrap-vcpkg.bat
- Run the command ./vcpkg install baresip-libre:x64-windows
Error message:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(101): error C2054: expected '(' to follow '_Noreturn'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(101): error C2085: 'thrd_exit': not in formal parameter list
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(104): error C2085: 'thrd_join': not in formal parameter list
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(105): error C2085: '_thrd_sleep32': not in formal parameter list
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(107): error C2085: '_thrd_sleep64': not in formal parameter list
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(116): error C2085: 'thrd_sleep': not in formal parameter list
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\threads.h(116): error C2143: syntax error: missing ';' before '{'
Note: I tried manually adding compilation options -std:c11
, which can solve this problem.
alfredh commented
we support both c99 and c11.
Which version should we use for the include
files, and which one should be default ?
alfredh commented
looks like this has been fixed in VCPKG repo.