Project

General

Profile

Actions

Bug #2379

closed

Build error in examples/ndn-custom-apps/custom-app.cpp

Added by Junxiao Shi almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
examples
Target version:
Start date:
01/14/2015
Due date:
% Done:

0%

Estimated time:

Description

Platform: Ubuntu 12.04 64-bit with Boost 1.48

ndn-cxx version: a90ba482597d899fe638993f257ec83e4eca4524

ns-3 version: fc42a8acb9d3763dd89ea826dafdeaabb2f21963

ndnSIM version: ab933c620a929135eb261fd36201cb0f1dd7c401

[1209/2532] cxx: src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp -> build/src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp.4.o
../src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp: In member function ‘virtual void ns3::CustomApp::OnInterest(std::shared_ptr<const ndn::Interest>)’:
../src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp:103:36: error: ‘<::’ cannot begin a template-argument list [-fpermissive]
../src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp:103:36: note: ‘<:’ is an alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
../src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp:103:36: note: (if you use ‘-fpermissive’ G++ will accept your code)
Waf: Leaving directory `/home/shijunxiao/ndn-cxx-breaks/repos/ns-3/build'
Build failed
 -> task in 'ndn-custom-apps' failed (exit status 1): 
    {task 53246544: cxx custom-app.cpp -> custom-app.cpp.4.o}
['/usr/bin/g++', '-std=c++0x', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-fPIC', '-I.', '-I..', '-Isrc/ndnSIM', '-I../src/ndnSIM', '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-I/usr/local/include', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp', '-c', '-o', 'src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp.4.o']
Actions #1

Updated by Junxiao Shi almost 10 years ago

Same error in apps/ndn-producer.cpp:

../src/ndnSIM/apps/ndn-producer.cpp: In member function ‘virtual void ns3::ndn::Producer::OnInterest(std::shared_ptr<const ndn::Interest>)’:
../src/ndnSIM/apps/ndn-producer.cpp:113:31: error: ‘<::’ cannot begin a template-argument list [-fpermissive]
../src/ndnSIM/apps/ndn-producer.cpp:113:31: note: ‘<:’ is an alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
../src/ndnSIM/apps/ndn-producer.cpp:113:31: note: (if you use ‘-fpermissive’ G++ will accept your code)
../src/ndnSIM/apps/ndn-producer.cpp:116:42: error: expected ‘<’ before ‘<:’ token
../src/ndnSIM/apps/ndn-producer.cpp:116:42: error: expected type-specifier before ‘<:’ token
../src/ndnSIM/apps/ndn-producer.cpp:116:42: error: expected ‘>’ before ‘<:’ token
../src/ndnSIM/apps/ndn-producer.cpp:116:42: error: expected ‘(’ before ‘<:’ token
../src/ndnSIM/apps/ndn-producer.cpp:116:44: error: expected identifier before ‘:’ token
../src/ndnSIM/apps/ndn-producer.cpp:116:80: error: expected ‘]’ before ‘;’ token
../src/ndnSIM/apps/ndn-producer.cpp: In lambda function:
../src/ndnSIM/apps/ndn-producer.cpp:116:80: error: expected ‘{’ before ‘;’ token
../src/ndnSIM/apps/ndn-producer.cpp: In member function ‘virtual void ns3::ndn::Producer::OnInterest(std::shared_ptr<const ndn::Interest>)’:
../src/ndnSIM/apps/ndn-producer.cpp:116:80: error: expected ‘)’ before ‘;’ token
Actions #2

Updated by Alex Afanasyev almost 10 years ago

12.04 with boost 1.48 will not be supported (for now). It is not exactly relevant to this problem, but there is another boost-related issue (https://svn.boost.org/trac/boost/ticket/6153) with gcc 4.6 compiler.

Actions #3

Updated by Junxiao Shi almost 10 years ago

Is there a Boost version we can use on Ubuntu 12.04?

and,
Is Ubuntu 14.04 with Boost 1.54 supported?

Actions #4

Updated by Alex Afanasyev almost 10 years ago

  • Status changed from New to In Progress

Sorry. I meant to report my progress on this issue, not just state the fact.

I'm in process of checking and updating documentation.

Actions #5

Updated by Spyros Mastorakis almost 10 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF