OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000747OMNeT++simulation kernelpublic2014-03-22 01:242014-10-03 09:56
Assigned Torhornig 
PlatformOSOS Version
Product Version4.4.1 
Target VersionFixed in Version4.6 
Summary0000747: std::to_string method is not available using g++ for Windows (C++11)
DescriptionHi there,

I've tried to compile my project code using g++ with the -std=c++11 option from with the mingw shell and it fails with the following error:

omnetpp-4.4.1/include/simutil.h: In function 'std::string double_to_str(double)':
omnetpp-4.4.1/include/simutil.h:366:11: error: 'to_string' is not a member of 'std'

This seems to be a well-known bug in Mingw [^] [^]

I wrote a quick patch to solve this (attached below), which simply replace the call to to_string with an ostringstream, but I guess there are cleaner ways to fix this.

TagsNo tags attached.
Attached Filespatch file icon to_string.patch [^] (888 bytes) 2014-03-22 01:24 [Show Content]

- Relationships

-  Notes
rhornig (administrator)
2014-10-03 09:56

OMNeT++ 4.6 now compiles in C++11 mode.

- Issue History
Date Modified Username Field Change
2014-03-22 01:24 paolinux New Issue
2014-03-22 01:24 paolinux File Added: to_string.patch
2014-10-03 09:56 rhornig Note Added: 0000935
2014-10-03 09:56 rhornig Status new => resolved
2014-10-03 09:56 rhornig Fixed in Version => 4.6
2014-10-03 09:56 rhornig Resolution open => fixed
2014-10-03 09:56 rhornig Assigned To => rhornig

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker