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

Failed to build on Windows while "-DCMAKE_C_FLAGS" is specified #628

Open
Chiichen opened this issue Sep 6, 2024 · 0 comments
Open

Failed to build on Windows while "-DCMAKE_C_FLAGS" is specified #628

Chiichen opened this issue Sep 6, 2024 · 0 comments

Comments

@Chiichen
Copy link

Chiichen commented Sep 6, 2024

If you'd like to put out an incentive for fixing this bug, you can do so at https://issuehunt.io/r/LibVNC/libvncserver

Describe the bug

This issue describes a failure while I'm trying to build on Windows using Cmake. And I find that it's caused by the "-DCMAKE_C_FLAGS" added. I'm a beginner in cmake, so I'm not sure about whether it's a misusage of cmake.

To Reproduce

Expected Behavior
build successfully

Logs/Backtraces

libvncserver is the directory where this library lies in

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(762,60): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(763,45): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(763,45): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(763,45): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(763,47): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(763,79): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(764,45): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(764,45): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(764,45): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(764,47): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(764,79): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(765,39): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(765,39): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(765,39): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(765,41): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(765,67): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(766,41): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(766,41): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(766,41): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(766,50): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(766,60): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(767,46): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(767,46): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(767,46): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(767,55): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(767,77): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(791,48): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(791,48): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(791,48): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(791,57): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(792,67): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(792,67): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(792,67): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(792,76): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(793,21): error C2061: syntax error: identifier 'rfbClientIteratorNext' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(793,21): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(793,43): error C2059: syntax error: '<parameter-list>' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(795,43): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(795,43): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(795,43): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(795,45): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(796,43): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(796,43): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(796,43): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(796,45): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(798,53): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(798,53): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(798,53): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(798,62): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(798,77): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,21): error C2061: syntax error: identifier 'rfbNewClient' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,21): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,51): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,51): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,60): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(799,75): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(800,21): error C2061: syntax error: identifier 'rfbNewUDPClient' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(800,21): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(800,54): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(800,54): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(800,63): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,21): error C2061: syntax error: identifier 'rfbReverseConnection' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,21): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,59): error C2146: syntax error: missing ')' before identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,59): error C2061: syntax error: identifier 'rfbScreen' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,68): error C2059: syntax error: ',' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(801,89): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(802,50): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(802,50): error C2061: syntax error: identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(802,50): error C2059: syntax error: ';' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(802,52): error C2059: syntax error: ')' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(803,50): error C2146: syntax error: missing ')' before identifier 'cl' [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

  E:\repo\cice\libvnc-rs\libvnc-sys\libvncserver\include\rfb\rfb.h(803,50): error C1003: error count exceeds 100; stopping compilation [E:\repo\cice\libvnc-rs\target\debug\build\libvnc-sys-a75d01ca3dfea7ea\out\build\vncserver.vcxproj]
    (compiling source file '../../../../../../libvnc-sys/libvncserver/src/libvncserver/rfbssl_none.c')

Your environment (please complete the following information):

  • OS and version: Windows Server 2022
  • Compiler and version: Visual Studio 2022

Additional context

@Chiichen Chiichen added the bug label Sep 6, 2024
@Chiichen Chiichen changed the title Failed to build on Windows with "-DCMAKE_C_FLAGS" Failed to build on Windows while "-DCMAKE_C_FLAGS" is specified Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants