You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by James Mansion <ja...@mansionfamily.plus.com> on 2009/03/15 16:00:12 UTC
Build failure for C++ tests with VC2008 and Boost 1.38
Where to Jira?
I see:
ClientSessionTest.cpp
.\ClientSessionTest.cpp(149) : error C2447: '{' : missing function
header (old-style formal list?)
.\ClientSessionTest.cpp(170) : error C2447: '{' : missing function
header (old-style formal list?)
I'm using VS2008 with Boost 1.38, QPID_AUTO_TEST_CASE_EXPECTED_FAILURES
expands to BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES, but that doesn't seem
to expand to something that ends with the start of a function definition.
Rather it expands to:
struct testSuspend0Timeout_id; static struct
testSuspend0Timeout_exp_fail_num_spec : boost::unit_test::ut_detail::
auto_tc_exp_fail<testSuspend0Timeout_id > {
testSuspend0Timeout_exp_fail_num_spec() : boost::unit_test::ut_detail::
auto_tc_exp_fail<testSuspend0Timeout_id >( 1 ) {} }
testSuspend0Timeout_exp_fail_num_spec_inst;
{
ClientSessionFixture fix;
fix.session.suspend();
I don't have older boost versions installed - is this a boost change?
James
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
Re: Build failure for C++ tests with VC2008 and Boost 1.38
Posted by Ján Sáreník <js...@redhat.com>.
Hello!
On Sun, Mar 15, 2009 at 03:00:12PM +0000, James Mansion wrote:
> I'm using VS2008 with Boost 1.38, QPID_AUTO_TEST_CASE_EXPECTED_FAILURES
> expands to BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES, but that doesn't seem
> to expand to something that ends with the start of a function definition.
On Mon, Mar 16, 2009 at 09:28:31AM +0100, Ján Sáreník wrote:
> Yes, IMHO it is a boost change. I am including a patch that helps me
> to make it compile and run.
The change is already upstream in trunk, see
https://issues.apache.org/jira/browse/QPID-1741
for more info.
Best regards, Jasan
--
Red Hat Czech, MRG Quality Assurance Associate
""" Looking to carve out IT costs?
www.europe.redhat.com/promo/carveoutcosts/ """
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
Re: Build failure for C++ tests with VC2008 and Boost 1.38
Posted by Ján Sáreník <js...@redhat.com>.
Hi James!
On Sun, Mar 15, 2009 at 03:00:12PM +0000, James Mansion wrote:
> I don't have older boost versions installed - is this a boost change?
Yes, IMHO it is a boost change. I am including a patch that helps me
to make it compile and run.
Best regards, Jasan
--
Red Hat Czech, MRG Quality Assurance Associate
""" Looking to carve out IT costs?
www.europe.redhat.com/promo/carveoutcosts/ """
RE: Build failure for C++ tests with VC2008 and Boost 1.38
Posted by "Vincent Seavello (Interop Systems Inc)" <v-...@microsoft.com>.
I'm not sure, but this could be due to one of the test header
files not being aware of boost greater than 1.35. This change
may do the trick. I used it when building with 1.36. You'd have
to modify the change to handle 1.38.
cpp/src/tests/unit_test.h
56c56
< #if (BOOST_VERSION < 103600)
---
> #if (BOOST_VERSION <= 103600)
I couldn't tell you if there are significant boost changes between
1.35 and 1.38 that need closer scrutiny for other reasons.
Otherwise, I found previous versions of boost at:
http://www.boostpro.com/boost_1_35_0_setup.exe
http://www.boostpro.com/boost_1_36_0_setup.exe
Vince Seavello
-----Original Message-----
From: James Mansion [mailto:james@mansionfamily.plus.com]
Sent: Sunday, March 15, 2009 8:00 AM
To: dev@qpid.apache.org
Subject: Build failure for C++ tests with VC2008 and Boost 1.38
Where to Jira?
I see:
ClientSessionTest.cpp
.\ClientSessionTest.cpp(149) : error C2447: '{' : missing function
header (old-style formal list?)
.\ClientSessionTest.cpp(170) : error C2447: '{' : missing function
header (old-style formal list?)
I'm using VS2008 with Boost 1.38, QPID_AUTO_TEST_CASE_EXPECTED_FAILURES
expands to BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES, but that doesn't seem
to expand to something that ends with the start of a function definition.
Rather it expands to:
struct testSuspend0Timeout_id; static struct
testSuspend0Timeout_exp_fail_num_spec : boost::unit_test::ut_detail::
auto_tc_exp_fail<testSuspend0Timeout_id > {
testSuspend0Timeout_exp_fail_num_spec() : boost::unit_test::ut_detail::
auto_tc_exp_fail<testSuspend0Timeout_id >( 1 ) {} }
testSuspend0Timeout_exp_fail_num_spec_inst;
{
ClientSessionFixture fix;
fix.session.suspend();
I don't have older boost versions installed - is this a boost change?
James
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org