Q:facebook folly::future, компиляция не удалась

Я просто пишу так:

  #include <folly/futures/Future.h>
  using folly::Promise;
  int main()
  {
    Promise<int> p;
    return 0;
  }

Однако не получится, выдав это сообщение:

  In function `folly::exception_wrapper::exception_wrapper()':
  error: undefined reference to `folly::exception_wrapper::uninit_'
  In function `folly::exception_wrapper::operator bool() const':
  undefined reference to `folly::exception_wrapper::uninit_'
  ..............

Мои CMakeLists:

  project(FollyTest)
  cmake_minimum_required(VERSION 2.8)

  aux_source_directory(. SRC_LIST)
  add_executable(${PROJECT_NAME} ${SRC_LIST})

Как я могу исправить эту проблему?

0 ответов

Другие вопросы по тегам