问题
I've been trying to compile some C files to use in XCode that uses Openssl as a dependency for encryption. When compiling with clang the code compiles fine. I read a few posts on here like Setting C++ compile flags in xcode that says to put the flags under Other Linker Flags but I still couldn't get it to recognize it.
Here is the compiling command that works on the command line:
Flags in XCode:
The error in XCode:
回答1:
Solution thanks to @WhozCraig
Add the include folder in "Header Search Paths" and library folder in "Library Search Paths"
Then put -lcrypto to link the files under "Other Link Flags"
来源:https://stackoverflow.com/questions/51715807/setting-c-compile-flags-in-xcode