Unable to compile project

Jul 14, 2014 at 1:23 PM
Edited Jul 14, 2014 at 1:27 PM

I have followed the instructions to compile cpprest for OSx and for iOS in
and in

I keep getting errors when trying to compile:

for OSx I get when I try to:
make -j 4
I get: _Undefined symbols for architecture x86_64: "TLSv1_1_client_method", referenced from: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)

and for iOS when I try to
cmake .. -DCMAKE_BUILD_TYPE=Release
I get: CMake Error at CMakeLists.txt:3 (project): The CMAKE_C_COMPILER: gcc is not a full path and was not found in the PATH.

Has anyone encountered this before?
Is there a more simple way (without compiling the entire project) to reference cpprest?

Jul 16, 2014 at 12:40 AM
Hi Dan,

The iOS issue is caused by a bug in ios-cmake, the toolchain we rely on for iOS building. There is a patch file in the development branch under "Build_iOS/ios_cmake_clang3.patch" which can be used to fix this issue. Alternatively, you can download an earlier version of cmake (2.8.12).

For the OSX issue, it sounds like you're building against an old version of OpenSSL -- Are you using the most up to date version of XCode? Did you install the OpenSSL dev files through homebrew? The version of OpenSSL shipped with OSX is old and not compatible with 1.0.0+; it is critical that you link against a newer version of OpenSSL.

Marked as answer by Tilon on 7/20/2014 at 5:46 AM
Jul 20, 2014 at 1:46 PM
Thanks Roschuma.
I have reinstalled, all the necessary prerequisite libraries using brew and it fixed it.
I had everything installed using MacPorts.