Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6771

Can't compile qpidbroker with vc2008

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • qpid-cpp-0.34
    • qpid-cpp-1.36.0
    • C++ Broker
    • None
    • Windows xp sp3, VC2008 no sp,boost 1.59.0

    Description

      1) qpid-cpp-0.34\src\qpid\sys\regex.h
      qpid-cpp-0.34\src\qpid/sys/regex.h(27) : fatal error C1083: 无法打开包括文件:"regex": No such file or directory

      from:
      #if defined(POSIX_SOURCE) || defined(unix_)

      1. include <stdexcept>
      2. include <string>
      3. include <regex.h>
        #elif defined(_MSC_VER)
      4. include <regex>
        #else
        #error "No known regex implementation"
        #endif

      to:
      #if defined(POSIX_SOURCE) || defined(unix_)

      1. include <stdexcept>
      2. include <string>
      3. include <regex.h>
        #elif (_MSC_VER > 1500)
      4. include <regex>
        #elif (_MSC_VER <= 1500)
      5. include <boost/tr1/regex.hpp>
        #else
        #error "No known regex implementation"
        #endif

      2)qpid-cpp-0.34\src\qpid\sys\unordered_map.h
      qpid-cpp-0.34\src\qpid/sys/unordered_map.h(25) : fatal error C1083: 无法打开包括文件:"unordered_map": No such file or directory

      from:
      #if defined(_MSC_VER) || defined(_LIBCPP_VERSION) || __cplusplus >= 201103L

      1. include <unordered_map>
        #elif defined(_SUNPRO_CC) || defined(IBMCPP_)
      2. include <boost/tr1/unordered_map.hpp>
        #else
      3. include <tr1/unordered_map>
        #endif /* _MSC_VER */

      to:
      #if (_MSC_VER > 1500) || defined(_LIBCPP_VERSION) || __cplusplus >= 201103L

      1. include <unordered_map>
        #elif (MSC_VER <= 1500) || defined(SUNPRO_CC) || defined(IBMCPP_)
      2. include <boost/tr1/unordered_map.hpp>
        #else
      3. include <tr1/unordered_map>
        #endif /* _MSC_VER */

      3)..\..\..\src\tests\exception_test.cpp(66) : error C3861: "BOOST_MESSAGE": 找不到标识符

      from:
      void run() {
      try

      { ScopedSuppressLogging sl; // Suppress messages for expected errors. f(); }
      catch(const Ex& e) {
      caught=true;
      BOOST_MESSAGE(string("Caught expected exception: ")e.what()"["+typeid(e).name()+"]");

      to:
      void run() {
      try { ScopedSuppressLogging sl; // Suppress messages for expected errors. f(); }

      catch(const Ex& e) {
      caught=true;
      BOOST_ERROR(string("Caught expected exception: ")e.what()"["+typeid(e).name()+"]");

      Attachments

        Activity

          People

            Unassigned Unassigned
            sun_xf sxf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: