How to link against macOS frameworks in C
It took me several minutes of google the title in various ways before I stumbled upon a way to add frameworks to a C/C++/ObjC application compiling on the command line with clang.
The magic flag you want is -framework CoreFoundation
(replace CoreFoundation with whatever framework you want).
Not -lCoreFoundation
That is all.
Tagged
- [code]
- [mac]
- [software development]