bug 245: build failure with gcc 4.3.x
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <stdlib.h> // for exit ()
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
@@ -261,7 +262,9 @@ int main (int argc, char *argv[])
|
||||
if (strncmp ("--n=", argv[0],strlen ("--n=")) == 0)
|
||||
{
|
||||
char const *nAscii = argv[0] + strlen ("--n=");
|
||||
n = atoi (nAscii);
|
||||
std::istringstream iss;
|
||||
iss.str (nAscii);
|
||||
iss >> n;
|
||||
}
|
||||
argc--;
|
||||
argv++;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
#include <string.h>
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <deque>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user