OrangeC icon indicating copy to clipboard operation
OrangeC copied to clipboard

Currently pragma comment(linker) is unsupported

Open yh15kla9 opened this issue 7 months ago • 8 comments

I got a bunch of warnings when trying to compile the DLL in #1088:

Warning api-ms-win-core-synch-l1-2-0.c(138): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(139): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(140): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(142): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(143): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(144): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(145): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(146): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(147): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(148): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(149): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(150): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(151): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(152): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(153): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(154): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(155): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(156): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(157): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(158): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(159): Currently pragma comment(linker) is
 unsupported.

yh15kla9 avatar May 28 '25 00:05 yh15kla9

And that's good because it makes you aware that you have to set those link options yourself, no?yh15kla9 @.***> schrieb am Mittwoch, 28. Mai 2025 um 02:12:

yh15kla9 created an issue (LADSoft/OrangeC#1089)

I got a bunch of warnings when trying to compile the DLL in #1088:

Warning api-ms-win-core-synch-l1-2-0.c(138): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(139): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(140): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(142): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(143): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(144): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(145): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(146): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(147): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(148): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(149): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(150): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(151): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(152): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(153): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(154): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(155): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(156): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(157): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(158): Currently pragma comment(linker) is
 unsupported.
Warning api-ms-win-core-synch-l1-2-0.c(159): Currently pragma comment(linker) is
 unsupported.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

GitMensch avatar May 28 '25 05:05 GitMensch

Even with -Wunknown-pragmas? This may not be a default warning (or not any more); in any case occ should support -Wno-unknown-pragmas (I don't think it does yet) - in this case possibly rename this issue and keep track of it that way (maybe also including "not warn by default, but with -Wall"). What do you think?

GitMensch avatar May 28 '25 08:05 GitMensch

The only reason I left that as a default warning was I wasn't thinking about it and it was related to the #761 issue where I wanted to be clear.

I can do a quick fixup adding that tonight/tomorrow.

chuggafan avatar May 28 '25 11:05 chuggafan

this isn't the first time this has come up; in #840 ghost was complaining about the lack of -Wno-unknown pragmas lol... making it an extended warning should fix the problem though.

LADSoft avatar May 28 '25 19:05 LADSoft

I've re-discovered why I found this annoying btw: I have to figure out how to pass enablements/disablements to/from the preprocessor. @LADSoft Do you remember if there's already existing examples of disabling warnings coming from occ to the preprocessor unit in occparse or is that something I'm going to have to smuggle in somehow?

chuggafan avatar May 29 '25 01:05 chuggafan

yeah i don't think anything like that exists... it is a problem already in that if you disable warntings entirely the preprocess will still emit them AFAIK....

LADSoft avatar May 29 '25 16:05 LADSoft