Actions
Bug #1147
closedIdentifier conflict with <boost/bind.hpp>
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/24/2014
Due date:
% Done:
0%
Estimated time:
Description
Code file boost-bind.cpp:
#include <boost/bind.hpp>
#include <ndn-cpp-dev/name.hpp>
int
main()
{
return 0;
}
Compile with g++ boost-bind.cpp -o boost-bind returns this error:
In file included from /usr/local/include/ndnboost/bind/bind.hpp:1742:0,
from /usr/local/include/ndnboost/bind.hpp:22,
from /usr/local/include/ndn-cpp-dev/common.hpp:71,
from /usr/local/include/ndn-cpp-dev/encoding/block.hpp:13,
from /usr/local/include/ndn-cpp-dev/name.hpp:17,
from boost-bind.cpp:2:
/usr/local/include/ndnboost/bind/placeholders.hpp:55:18: error: conflicting declaration ‘ndnboost::arg<1> {anonymous}::_1’
/usr/include/boost/bind/placeholders.hpp:55:15: error: ‘{anonymous}::_1’ has a previous declaration as ‘boost::arg<1> {anonymous}::_1’
/usr/local/include/ndnboost/bind/placeholders.hpp:56:18: error: conflicting declaration ‘ndnboost::arg<2> {anonymous}::_2’
/usr/include/boost/bind/placeholders.hpp:56:15: error: ‘{anonymous}::_2’ has a previous declaration as ‘boost::arg<2> {anonymous}::_2’
/usr/local/include/ndnboost/bind/placeholders.hpp:57:18: error: conflicting declaration ‘ndnboost::arg<3> {anonymous}::_3’
/usr/include/boost/bind/placeholders.hpp:57:15: error: ‘{anonymous}::_3’ has a previous declaration as ‘boost::arg<3> {anonymous}::_3’
/usr/local/include/ndnboost/bind/placeholders.hpp:58:18: error: conflicting declaration ‘ndnboost::arg<4> {anonymous}::_4’
/usr/include/boost/bind/placeholders.hpp:58:15: error: ‘{anonymous}::_4’ has a previous declaration as ‘boost::arg<4> {anonymous}::_4’
/usr/local/include/ndnboost/bind/placeholders.hpp:59:18: error: conflicting declaration ‘ndnboost::arg<5> {anonymous}::_5’
/usr/include/boost/bind/placeholders.hpp:59:15: error: ‘{anonymous}::_5’ has a previous declaration as ‘boost::arg<5> {anonymous}::_5’
/usr/local/include/ndnboost/bind/placeholders.hpp:60:18: error: conflicting declaration ‘ndnboost::arg<6> {anonymous}::_6’
/usr/include/boost/bind/placeholders.hpp:60:15: error: ‘{anonymous}::_6’ has a previous declaration as ‘boost::arg<6> {anonymous}::_6’
/usr/local/include/ndnboost/bind/placeholders.hpp:61:18: error: conflicting declaration ‘ndnboost::arg<7> {anonymous}::_7’
/usr/include/boost/bind/placeholders.hpp:61:15: error: ‘{anonymous}::_7’ has a previous declaration as ‘boost::arg<7> {anonymous}::_7’
/usr/local/include/ndnboost/bind/placeholders.hpp:62:18: error: conflicting declaration ‘ndnboost::arg<8> {anonymous}::_8’
/usr/include/boost/bind/placeholders.hpp:62:15: error: ‘{anonymous}::_8’ has a previous declaration as ‘boost::arg<8> {anonymous}::_8’
/usr/local/include/ndnboost/bind/placeholders.hpp:63:18: error: conflicting declaration ‘ndnboost::arg<9> {anonymous}::_9’
/usr/include/boost/bind/placeholders.hpp:63:15: error: ‘{anonymous}::_9’ has a previous declaration as ‘boost::arg<9> {anonymous}::_9’
Updated by Alex Afanasyev almost 12 years ago
- Status changed from New to Resolved
This is known issue. In order to use ndn-cpp-dev needs to be compiled with --with-system-boost option, otherwise you will get the errors.
This relates to issue #1126 and I'm in the process of pushing commit that changes the default behavior (will not use C++11 feature and will use system-installed boost libraries).
Updated by Alex Afanasyev over 11 years ago
- Project changed from 4 to ndn-cxx
- Target version deleted (
dev)
Updated by Alex Afanasyev over 11 years ago
- Status changed from Resolved to Closed
Actions