Skip to main content

Search

Items tagged with: Pragma


clang supports #pragma comment(lib, ...) on windows xor gnu. incredible


clang -fuse-ld=lld -target x86_64-linux-gnu: of course #pragma comment(lib, "-lX11") works
clang -fuse-ld=lld -target x86_64-windows-gnu: of course #pragma comment(lib, "-lws2_32") is silently ignored

i feel like i'm in a fever dream. this is the exact opposite of what i would expect!!


i just found out that `#pragma comment(lib, ...)` works with clang on an ELF target but not on a COFF target. the

i... what? how do you even end up in this situation? i'm completely lost


return -2?

Or have you looked into #pragma warning stuff to warn on deprecated interfaces?

Can't support the ABI in infinity...


My first day in #Bologna on the #Pragma conference... I am excited and scared at the same time!