nativeformat / NFHTTP

A cross platform C++ HTTP library that interfaces natively to other platforms.
Apache License 2.0
588 stars 37 forks source link

Compilation using gcc-7 fails (Linux) #30

Closed conjam closed 5 years ago

conjam commented 5 years ago

AFAIK, cc1objplus is no longer shipped with gcc-7/g++-7, but the make system invokes it in some capacity.

exact error message is as follow:

[ 87%] Building CXX object source/CMakeFiles/NFHTTP.dir/ClientNSURLSession.mm.o c++: error trying to exec 'cc1objplus': execvp: No such file or directory source/CMakeFiles/NFHTTP.dir/build.make:114: recipe for target 'source/CMakeFiles/NFHTTP.dir/ClientNSURLSession.mm.o' failed make[2]: *** [source/CMakeFiles/NFHTTP.dir/ClientNSURLSession.mm.o] Error 1 CMakeFiles/Makefile2:1475: recipe for target 'source/CMakeFiles/NFHTTP.dir/all' failed make[1]: *** [source/CMakeFiles/NFHTTP.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

gcc-5 / g++-5 does work on both Ubuntu 18.04 and 16.04.

EDIT: Just realized this is due to curl requiring gcc-5 .. resolved.