OrangeC icon indicating copy to clipboard operation
OrangeC copied to clipboard

Unable to compile this DLL

Open yh15kla9 opened this issue 7 months ago • 4 comments

https://github.com/cristianadam/api-ms-win-core-synch-Win7/blob/main/api-ms-win-core-synch-l1-2-0.c

occ (OrangeC) Version 6.73.1
Copyright (C) LADSoft 2006-2025
Error( 11)    api-ms-win-core-synch-l1-2-0.c(45):  Syntax error: ) expected
Warning( 74)  api-ms-win-core-synch-l1-2-0.c(49):  Missing type for parameter '_In_'
Error( 99)    api-ms-win-core-synch-l1-2-0.c(49):  Type mismatch in redeclaration of function 'WaitOnAddress'
Warning( 39)  C:\OrangeC\include\c\win32\synchapi.h(165):  Previous declarationof 'WaitOnAddress' here
Error( 18)    api-ms-win-core-synch-l1-2-0.c(55):  Undefined symbol 'Address'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(55):  Undefined symbol 'CompareAddress'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(60):  Undefined symbol 'AddressSize'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(66):  Undefined symbol 'Address'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(66):  Undefined symbol 'CompareAddress'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(66):  Undefined symbol 'AddressSize'
Error(114)    api-ms-win-core-synch-l1-2-0.c(66):  Type mismatch in parameter 'A1' in call to 'CompareVolatileMemory'
Error(114)    api-ms-win-core-synch-l1-2-0.c(66):  Type mismatch in parameter 'A2' in call to 'CompareVolatileMemory'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(75):  Undefined symbol 'Address'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(82):  Undefined symbol 'Address'
Error( 18)    api-ms-win-core-synch-l1-2-0.c(93):  Undefined symbol 'dwMilliseconds'
Error( 11)    api-ms-win-core-synch-l1-2-0.c(107):  Syntax error: ) expected
Warning( 74)  api-ms-win-core-synch-l1-2-0.c(108):  Missing type for parameter '_In_'
Error( 99)    api-ms-win-core-synch-l1-2-0.c(108):  Type mismatch in redeclaration of function 'WakeByAddressAll'
Warning( 39)  C:\OrangeC\include\c\win32\synchapi.h(167):  Previous declarationof 'WakeByAddressAll' here
Error( 18)    api-ms-win-core-synch-l1-2-0.c(113):  Undefined symbol 'Address'
Error( 11)    api-ms-win-core-synch-l1-2-0.c(123):  Syntax error: ) expected
Warning( 74)  api-ms-win-core-synch-l1-2-0.c(124):  Missing type for parameter '_In_'
Error( 99)    api-ms-win-core-synch-l1-2-0.c(124):  Type mismatch in redeclaration of function 'WakeByAddressSingle'
Warning( 39)  C:\OrangeC\include\c\win32\synchapi.h(166):  Previous declarationof 'WakeByAddressSingle' here
Error( 18)    api-ms-win-core-synch-l1-2-0.c(129):  Undefined symbol 'Address'

yh15kla9 avatar May 28 '25 00:05 yh15kla9

I haven't seen any Source Annotation Library (SAL) annotations used anywhere in our code, unless you remove or #define away the SAL stuff this won't compile by default.

chuggafan avatar May 28 '25 00:05 chuggafan

other than the SAL stuff which we probably won't support unless there is a need to at least dummy out the declarations... the linker warning will be taken care of in #1089 so im closing this.

LADSoft avatar May 28 '25 23:05 LADSoft

i guess i'll look at sal.h in conjunction with looking at the mingw64 headersss.

LADSoft avatar Jun 02 '25 23:06 LADSoft