Project

General

Profile

Actions

Bug #2743

closed

error: 'to_string' is not a member of 'std' when cross-compiling NFD for OpenWRT

Added by Mathias Gibbens about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
04/10/2015
Due date:
% Done:

100%

Estimated time:

Description

Today I was working on cross-compiling NFD 0.3.1 for OpenWRT. When I do, I get this error (after fixing a different issue reported in bug #2299):

../tools/ndn-autoconfig/base-dns.cpp: In member function 'std::string ndn::tools::autoconfig::BaseDns::parseSrvRr(const ndn::tools::autoconfig::BaseDns::QueryAnswer&, int)':
../tools/ndn-autoconfig/base-dns.cpp:163:14: error: 'to_string' is not a member of 'std'
   uri.append(std::to_string(convertedPort));

I found a similar issue in another project at https://bitbucket.org/fenics-project/dolfin/commits/066b8cfe, and changing std::to_string to boost::lexical_cast<std::string> seems to fix the problem.

Opinions?


Related issues 1 (0 open1 closed)

Related to ndn-cxx - Bug #3303: error: 'to_string' is not a member of 'std' when cross-compiling ndn-cxx for OpenWRTRejected10/29/2015

Actions
Actions

Also available in: Atom PDF