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:





-Idirectives or anything like that; Xcode adds all of that when submitting to clang).-lcryptoto your linker flags (where this all started).