[Accumulator] Build error in using BOOST::accumulator on WXP VC8
Hello, I am using BOOST::accumulator from 1.37. I get the following warning in the build on WXP using VC8 (MSVC 2005). I am exploring to find out where the problem could be, posting to find is someone has experienced this problem. Since our build treats warnings as errors, I am stuck. ...include\boost/fusion/container/vector/detail/deref_impl.hpp(46) : warning C4003: not enough actual parameters for macro 'index' -dhruva -- Contents reflect my personal views only! Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
dhruva wrote:
Hello, I am using BOOST::accumulator from 1.37. I get the following warning in the build on WXP using VC8 (MSVC 2005). I am exploring to find out where the problem could be, posting to find is someone has experienced this problem. Since our build treats warnings as errors, I am stuck.
...include\boost/fusion/container/vector/detail/deref_impl.hpp(46) : warning C4003: not enough actual parameters for macro 'index'
This doesn't sound like a problem with Boost.Accumulators. You'll need to figure out what header on your platform is #define'ing a macro named "index". I don't have access to this platform so I can't help you, but maybe someone else here does and can. -- Eric Niebler BoostPro Computing http://www.boostpro.com
Hello, Thank you for the confirmation that it is not related to accumulator. I was intrigued because the GNU/Linux build went fine and I got stuck in the windows build. I explored further and found the offending statement in net-snmp-config.h #ifndef HAVE_INDEX #ifdef HAVE_STRCHR # define index(a,b) strchr(a,b) # define rindex(a,b) strrchr(a,b) #endif #endif I now need to find if it is hand modified or problem in the net-snmp configure that is adding this problem. Thanks again for helping me out. -dhruva -- Contents reflect my personal views only! ----- Original Message ----
From: Eric Niebler
To: boost-users@lists.boost.org Sent: Wednesday, 4 February, 2009 9:29:16 PM Subject: Re: [Boost-users] [Accumulator] Build error in using BOOST::accumulator on WXP VC8 dhruva wrote:
Hello, I am using BOOST::accumulator from 1.37. I get the following warning in the build on WXP using VC8 (MSVC 2005). I am exploring to find out where the problem could be, posting to find is someone has experienced this problem. Since our build treats warnings as errors, I am stuck.
...include\boost/fusion/container/vector/detail/deref_impl.hpp(46) : warning C4003: not enough actual parameters for macro 'index'
This doesn't sound like a problem with Boost.Accumulators. You'll need to figure out what header on your platform is #define'ing a macro named "index". I don't have access to this platform so I can't help you, but maybe someone else here does and can.
-- Eric Niebler BoostPro Computing http://www.boostpro.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
AMDG dhruva wrote:
I am using BOOST::accumulator from 1.37. I get the following warning in the build on WXP using VC8 (MSVC 2005). I am exploring to find out where the problem could be, posting to find is someone has experienced this problem. Since our build treats warnings as errors, I am stuck.
...include\boost/fusion/container/vector/detail/deref_impl.hpp(46) : warning C4003: not enough actual parameters for macro 'index'
Indeed, this should be considered an error. Find whatever is doing a #define index(...) and destroy it. In Christ, Steven Watanabe
participants (3)
-
dhruva
-
Eric Niebler
-
Steven Watanabe