Trying to call a c header in a swift project as follows in the GitHub link. GitHub - lemire/SwiftCallingCHeader: Calling a C header from Swift (example)
The only problem is this doesn't work with SPM 4.2. How do I do this?
NOTE: this question is NOT asking how to wrap a c-library with spm so it can be used as a library in another swift project. incase you are interested in knowing how that's done , check out, GitHub - RockfordWei/CSwift: C Module for Swift, Swift Script and Dynamic Library Call;Swift中直接调用C语言源程序的展示程序