Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error:warning: initialized lambda captures are a C++14 extension [-Wc++14-extensions] #20

Closed
CrashHunter opened this issue Apr 13, 2016 · 2 comments

Comments

@CrashHunter
Copy link

In file included from ./../folly/io/async/Request.h:27:
./../folly/SingletonThreadLocal.h:32:21: warning: initialized lambda captures
are a C++14 extension [-Wc++14-extensions]
: singleton_(createFunc = std::move(createFunc) mutable {
^
./../folly/SingletonThreadLocal.h:33:36: warning: initialized lambda captures
are a C++14 extension [-Wc++14-extensions]
return new ThreadLocalT([createFunc =
^
In file included from io/async/AsyncPipe.cpp:16:
In file included from ./../folly/io/async/AsyncPipe.h:18:
In file included from ./../folly/io/async/AsyncTransport.h:26:
./../folly/io/async/ssl/OpenSSLPtrTypes.h:20:10: fatal error: 'openssl/evp.h'
file not found

include <openssl/evp.h>

     ^

2 warnings and 1 error generated.
make[4]: *** [io/async/AsyncPipe.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@CrashHunter
Copy link
Author

solved by brew link openssl --force
then :
./../folly/portability/Malloc.h:27:12: error: unknown type name 'size_t'
extern "C" size_t malloc_usable_size(void* ptr);

@CrashHunter
Copy link
Author

solved Malloc.h complice error
by
added #include <stddef.h> to /third_party/folly/folly/portability/Malloc.h

facebook-github-bot pushed a commit that referenced this issue Nov 9, 2022
Summary:
Recent versions of CMake (e.g. 3.24.2) appear to fail unless the `cmake_minimum_required` version is set.  Furthermore, we set `project` to silence the corresponding warning.

X-link: facebook/SPARTA#20

Reviewed By: yuxuanchen1997

Differential Revision: D41150912

Pulled By: arnaudvenet

fbshipit-source-id: b1b37faa58ac5b24238ba196e1a8dbe202142272
facebook-github-bot pushed a commit that referenced this issue Nov 9, 2022
Summary:
Recent versions of CMake (e.g. 3.24.2) appear to fail unless the `cmake_minimum_required` version is set.  Furthermore, we set `project` to silence the corresponding warning.

X-link: facebook/SPARTA#20

Reviewed By: yuxuanchen1997

Differential Revision: D41150912

Pulled By: arnaudvenet

fbshipit-source-id: b1b37faa58ac5b24238ba196e1a8dbe202142272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant