You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "sxf (JIRA)" <ji...@apache.org> on 2015/10/05 14:09:26 UTC

[jira] [Created] (QPID-6771) Can't compile qpidbroker with vc2008

sxf created QPID-6771:
-------------------------

             Summary: Can't compile qpidbroker with vc2008
                 Key: QPID-6771
                 URL: https://issues.apache.org/jira/browse/QPID-6771
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: qpid-cpp-0.34
         Environment: Windows xp sp3, VC2008 no sp,boost 1.59.0
            Reporter: sxf
             Fix For: qpid-cpp-0.34


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__)
# include <stdexcept>
# include <string>
# include <regex.h>
#elif defined(_MSC_VER)
# include <regex>
#else
#error "No known regex implementation"
#endif

to:
#if defined(_POSIX_SOURCE) || defined(__unix__)
# include <stdexcept>
# include <string>
# include <regex.h>
#elif (_MSC_VER > 1500)
# include <regex>
#elif (_MSC_VER <= 1500)
# 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
#  include <unordered_map>
#elif defined(__SUNPRO_CC) || defined(__IBMCPP__)
#  include <boost/tr1/unordered_map.hpp>
#else
#  include <tr1/unordered_map>
#endif /* _MSC_VER */

to:
#if (_MSC_VER > 1500) || defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
#  include <unordered_map>
#elif (_MSC_VER <= 1500) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
#  include <boost/tr1/unordered_map.hpp>
#else
#  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()+"]");





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org