[Nfd-dev] [Ndn-interest] compiling ndn-cxx issues on CentOS 6.4
Alex Afanasyev
alexander.afanasyev at ucla.edu
Mon Nov 17 12:19:26 PST 2014
I was able to reproduce this error on CentOS 6.4. However, the compiler that is used on CentOS 6.4 by default is 4.4.7, which doesn’t really support C++11 features.
I was able to compile ndn-cxx, however, by installing gcc 4.8 from Devtoolset v2.
Add .repo file into /etc/yum.repos.d
[root at localhost ~]# cat /etc/yum.repos.d/princeton.repo
[DevToolset-2]
name=RedHat DevToolset v2 $releasever - $basearch
baseurl=http://puias.princeton.edu/data/puias/DevToolset/$releasever/$basearch/
enabled=1
gpgcheck=0
then yum install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils
then
. /opt/rh/devtoolset-2/enable
./waf configure
…
> On Nov 17, 2014, at 10:20 AM, Shuo Chen <chenatu2006 at gmail.com> wrote:
>
> Dear all,
>
> I am trying to compiling ndn-cxx on CentOS 6.4. When I start ./waf, it comes with these errros:
>
> In file included from ./../src/common-pch.hpp:28,
> from <command-line>:0:
> ./../src/common.hpp:109: error: using typename outside of template
> ./../src/common.hpp:110: error: using typename outside of template
> ./../src/common.hpp:111: error: using typename outside of template
> ./../src/common.hpp:112: error: using typename outside of template
> ./../src/common.hpp:113: error: using typename outside of template
> ./../src/common.hpp:114: error: using typename outside of template
> ./../src/common.hpp:115: error: using typename outside of template
> ./../src/common.hpp:116: error: using typename outside of template
> ./../src/common.hpp:117: error: using typename outside of template
>
> The gcc version is 4.6.4 boost version is 1.5.7
>
> The ndn-cxx can be compiled on ubuntu but not CentOS. How to solve this issue?
>
> ----
> Shuo Chen
> Tsinghua University
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
More information about the Nfd-dev
mailing list