GCC 4.8.4 Error on Ubuntu 14.04 VM: -std=c++11 flag isn't being detected -


i've looked everywhere online , can't seem find solution issue. have tried -std=c++11, -std=c++0x, , -std=c++1y flags in makefile , env file, of have no effect on following errors:

'to_string' not member of 'std' range based 'for' loops not allowed in c++98 mode 

i trying run c++ program built on top of repasthpc, running on ubuntu 14.04 virtualbox vm. both makefile repasthpc , env file c++ code contain flag. env file used in makefile c++ code, isn't missing there.

# repast hpc  # environment definitions  mpicxx=/home/repasthpc/repast_hpc-2.1.0/installation/mpich-3.1.4/src/env/mpicxx -std=c++11 -d use_cpp11 -stdlib=libc++  boost_include=-i/usr/local/include/ boost_lib_dir=-l/usr/local/lib/ boost_libs=-lboost_mpi-mt-s -lboost_serialization-mt-s -lboost_system-mt-s -lboost_filesystem-mt-s  repast_hpc_include=-i/usr/local/include/ repast_hpc_lib_dir=-l/usr/local/lib/ repast_hpc_lib=-lrepast_hpc-2.1  tissue_include=-i/users/repasthpc/desktop/hpcmodel/angiogenesis_osteogenesis_simulator/src/  ------------------------------------------------------------  # repast hpc # manual build makefile  # variables (supply values these; definitions , examples, see install) cxx=mpicxx      -std=c++11 -d use_cpp11 cxxld=mpicxx boost_include_dir=/usr/local/include boost_lib_dir=/usr/local/lib boost_infix=-mt netcdf_include_dir=/usr/local/include netcdf_lib_dir=/usr/local/lib curl_include_dir=/usr/local/include curl_lib_dir=/usr/local/lib 

** not end of makefile, end of relevant section **

any thoughts? thoroughly confused.

thanks! rachael

just couple issues makefile:

1)cxx=mpicxx does not intending.

the correct way

cxx=$(mpicxx) 

this translates to:

cxx=/home/repasthpc/repast_hpc-2.1.0/installation/mpich3.1.4/src/env/mpicxx 

2) also notice -std=c++11 -d use_cpp11 -stdlib=libc++ part not included in cxx above. because need '\' tell make there line well.

so try this:

mpicxx=/home/repasthpc/repast_hpc-2.1.0/installation/mpich-3.1.4/src/env/mpicxx \ -std=c++11 -d use_cpp11 -stdlib=libc++  boost_include=-i/usr/local/include/ boost_lib_dir=-l/usr/local/lib/ boost_libs=-lboost_mpi-mt-s -lboost_serialization-mt-s -lboost_system-mt-s -lboost_filesystem-mt-s  repast_hpc_include=-i/usr/local/include/ repast_hpc_lib_dir=-l/usr/local/lib/ repast_hpc_lib=-lrepast_hpc-2.1  tissue_include=-i/users/repasthpc/desktop/hpcmodel/angiogenesis_osteogenesis_simulator/src/  ------------------------------------------------------------  # repast hpc # manual build makefile  # variables (supply values these; definitions , examples, see install) cxx=$(mpicxx)      -std=c++11 -d use_cpp11 cxxld=$(mpicxx) boost_include_dir=/usr/local/include boost_lib_dir=/usr/local/lib boost_infix=-mt netcdf_include_dir=/usr/local/include netcdf_lib_dir=/usr/local/lib curl_include_dir=/usr/local/include curl_lib_dir=/usr/local/lib 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -