websocketpp 라이브러리의 오류 및 Windows Visual Studio 2015의 부스트

이삭

개발자 github 에서이 간단한 예제 https://github.com/zaphoyd/websocketpp/blob/master/examples/echo_server/echo_server.cpp 를 컴파일하려고 하는데 코드 외부에서 이상한 오류가 발생합니다.

또한이 게시물에 표시된대로 / Za 옵션을 켜려고 시도했습니다 : VC ++ 2012 및 Boost incompatibility-라이브러리 헤더의`throw ()`사양 이지만 "스레딩 지원을 사용할 수 없음 : 명시 적으로 비활성화되었습니다."라는 다른 오류가 발생합니다. BOOST_DISABLE_THREADS "

누군가이 문제를 해결하는 방법을 알고 있습니까? 감사!

오류 : Windows10 x64에서 Visual Studio 2015를 사용하고 있습니다. C:\websocketpp\websocketpp/transport/base/connection.hpp(187): error C2694: 'const char *websocketpp::transport::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/transport/base/connection.hpp(187): note: see declaration of 'websocketpp::transport::error::category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/transport/iostream/base.hpp(89): error C2694: 'const char *websocketpp::transport::iostream::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/transport/iostream/base.hpp(89): note: see declaration of 'websocketpp::transport::iostream::error::category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/error.hpp(151): error C2694: 'const char *websocketpp::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/error.hpp(151): note: see declaration of 'websocketpp::error::category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/frame.hpp(831): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data 1>C:\websocketpp\websocketpp/extensions/extension.hpp(65): error C2694: 'const char *websocketpp::extensions::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/extensions/extension.hpp(65): note: see declaration of 'websocketpp::extensions::error::category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\local\boost_1_59_0\boost/asio/detail/config.hpp(227): warning C4005: 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT': macro redefinition 1> C:\local\boost_1_59_0\boost/asio/detail/config.hpp(213): note: see previous definition of 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT' 1>C:\websocketpp\websocketpp/transport/asio/base.hpp(189): error C2694: 'const char *websocketpp::transport::asio::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/transport/asio/base.hpp(189): note: see declaration of 'websocketpp::transport::asio::error::category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/transport/asio/security/base.hpp(109): error C2694: 'const char *websocketpp::transport::asio::socket::socket_category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/transport/asio/security/base.hpp(109): note: see declaration of 'websocketpp::transport::asio::socket::socket_category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/processors/base.hpp(165): error C2694: 'const char *websocketpp::processor::error::processor_category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const' 1> C:\websocketpp\websocketpp/processors/base.hpp(165): note: see declaration of 'websocketpp::processor::error::processor_category::name' 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\system_error(167): note: see declaration of 'std::error_category::name' 1>C:\websocketpp\websocketpp/common/md5.hpp(367): warning C4267: '+=': conversion from 'size_t' to 'websocketpp::md5::md5_word_t', possible loss of data 1>C:\websocketpp\websocketpp/sha1/sha1.hpp(176): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Fritschifisch

나를 위해 트릭을 정의 _WEBSOCKETPP_NOEXCEPT_하고 _WEBSOCKETPP_CPP11_CHRONO_수행했습니다. :) https://github.com/zaphoyd/websocketpp/issues/437

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Error in websocketpp library and boost in windows Visual Studio 2015

분류에서Dev

Visual Studio 2015의 클래스 라이브러리 참조

분류에서Dev

Visual Studio 2015의 IISExpress 오류

분류에서Dev

Visual Studio 2015의 오류 C2784, C2672 및 C2664

분류에서Dev

Microsoft Visual Studio 2015의 C ++ 프로젝트에 Armadillo C ++ 라이브러리 포함

분류에서Dev

Visual Studio 2015 오류의 C 코드

분류에서Dev

SFML 설치 후 Visual Studio 2015의 오류

분류에서Dev

Visual Studio 2010의 오류 및 경고

분류에서Dev

Visual Studio-Windows UI 라이브러리-TargetPlatformMinVersion 및 TargetPlatformVersion (C #) 설정

분류에서Dev

Visual Studio의 클래스 라이브러리에 대한 Application Insights

분류에서Dev

Visual Studio 2019에서 GDAL 라이브러리 헤더 파일 오류 및 경고

분류에서Dev

Visual Studio의 인텔 컴파일러가 부스트 라이브러리를 찾지 못함

분류에서Dev

Xamarin iOS | Windows의 Visual Studio에서 Xamarin 빌드 호스트 연결 오류

분류에서Dev

Windows의 CMake 프로젝트에서 SFML 라이브러리와 연결 오류

분류에서Dev

Windows Visual Studio 2013으로 1.55 Python 부스트, 링크 오류

분류에서Dev

Visual Studio 2015 클래스 라이브러리 (C # 사용 중)

분류에서Dev

2012 년에 사라진 Visual Studio 2015의 오류

분류에서Dev

Visual Studio 대리자의 C # 및 예외 오류

분류에서Dev

Visual Studio 2015의 미리 컴파일 된 헤더 오류

분류에서Dev

Visual C ++의 C ++ 코드 라이브러리 열기 오류

분류에서Dev

Visual Studio의 Phalanger 오류

분류에서Dev

Visual Studio의 정적 라이브러리 프로젝트간에 해결되지 않은 외부

분류에서Dev

Visual Studio 2015 Ripple의 오류 400 (잘못된 요청)

분류에서Dev

Visual Studio 2015의 Iostream

분류에서Dev

업데이트 2 설치 오류가있는 Visual Studio 2015

분류에서Dev

C ++에서 부스트 라이브러리를 사용하여 3 개의 병렬 실행 스레드를 만드는 방법 (Visual Studio 2019)?

분류에서Dev

Visual Studio 2015의 새 Nuget 클래스 라이브러리 템플릿에서 문제를 참조하는 NuGet 패키지

분류에서Dev

Visual Studio 2015 오류. 프로젝트의 기본 XML 네임 스페이스는 MSBuild XML 네임 스페이스 여야합니다.

분류에서Dev

공유 라이브러리 내부에있는 클래스의 생성자 및 소멸자에 대한 C ++ 정의되지 않은 참조 오류

Related 관련 기사

  1. 1

    Error in websocketpp library and boost in windows Visual Studio 2015

  2. 2

    Visual Studio 2015의 클래스 라이브러리 참조

  3. 3

    Visual Studio 2015의 IISExpress 오류

  4. 4

    Visual Studio 2015의 오류 C2784, C2672 및 C2664

  5. 5

    Microsoft Visual Studio 2015의 C ++ 프로젝트에 Armadillo C ++ 라이브러리 포함

  6. 6

    Visual Studio 2015 오류의 C 코드

  7. 7

    SFML 설치 후 Visual Studio 2015의 오류

  8. 8

    Visual Studio 2010의 오류 및 경고

  9. 9

    Visual Studio-Windows UI 라이브러리-TargetPlatformMinVersion 및 TargetPlatformVersion (C #) 설정

  10. 10

    Visual Studio의 클래스 라이브러리에 대한 Application Insights

  11. 11

    Visual Studio 2019에서 GDAL 라이브러리 헤더 파일 오류 및 경고

  12. 12

    Visual Studio의 인텔 컴파일러가 부스트 라이브러리를 찾지 못함

  13. 13

    Xamarin iOS | Windows의 Visual Studio에서 Xamarin 빌드 호스트 연결 오류

  14. 14

    Windows의 CMake 프로젝트에서 SFML 라이브러리와 연결 오류

  15. 15

    Windows Visual Studio 2013으로 1.55 Python 부스트, 링크 오류

  16. 16

    Visual Studio 2015 클래스 라이브러리 (C # 사용 중)

  17. 17

    2012 년에 사라진 Visual Studio 2015의 오류

  18. 18

    Visual Studio 대리자의 C # 및 예외 오류

  19. 19

    Visual Studio 2015의 미리 컴파일 된 헤더 오류

  20. 20

    Visual C ++의 C ++ 코드 라이브러리 열기 오류

  21. 21

    Visual Studio의 Phalanger 오류

  22. 22

    Visual Studio의 정적 라이브러리 프로젝트간에 해결되지 않은 외부

  23. 23

    Visual Studio 2015 Ripple의 오류 400 (잘못된 요청)

  24. 24

    Visual Studio 2015의 Iostream

  25. 25

    업데이트 2 설치 오류가있는 Visual Studio 2015

  26. 26

    C ++에서 부스트 라이브러리를 사용하여 3 개의 병렬 실행 스레드를 만드는 방법 (Visual Studio 2019)?

  27. 27

    Visual Studio 2015의 새 Nuget 클래스 라이브러리 템플릿에서 문제를 참조하는 NuGet 패키지

  28. 28

    Visual Studio 2015 오류. 프로젝트의 기본 XML 네임 스페이스는 MSBuild XML 네임 스페이스 여야합니다.

  29. 29

    공유 라이브러리 내부에있는 클래스의 생성자 및 소멸자에 대한 C ++ 정의되지 않은 참조 오류

뜨겁다태그

보관