alexanderUV
(Alexander Ubillus)
1
Hi all,
I'm trying to add a systemLibrary to my package but it has C99 syntax (MoltenVK). I added a pkg-config file for it, but I can't get it to work, as the -std=c99 flag is ignored with
"MoltenVK.pc: warning: non whitelisted flag(s): -std=c99".
Any ideas on how to force the tool to use the parameter?
Thanks!
alexanderUV
(Alexander Ubillus)
2
Turns out this is not needed. The original reason why I was trying to do this was because of the following error:
unknown type name 'bool'
I just needed to add #include <stdbool.h> to my shim header.
However after fixing this, I am facing a similar issue:
error: 'string' file not found
This is coming from one of the header files in my shim, not the shim itself.
But I have no idea why this standard library include is not working.
Given that this is a systemLibrary I can't add cFlags. @compnerd , since you have been playing a crucial role in SwiftPM development, is there anything I could do here?
Thanks!
jrose
(Jordan Rose)
3
That sounds like you're trying to include a C++ header, not a C header at all.
2 Likes
alexanderUV
(Alexander Ubillus)
4
You're absolutely right...
I need to stop and reassess my approach here.
Thanks!