bug 245: build failure with gcc 4.3.x

This commit is contained in:
Mathieu Lacage
2008-07-02 03:16:36 -07:00
parent 67c5dfa611
commit b93a9aeef4
22 changed files with 45 additions and 7 deletions

View File

@@ -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++;

View File

@@ -23,6 +23,7 @@
#include <iostream>
#include <fstream>
#include <vector>
#include <string.h>
using namespace ns3;

View File

@@ -24,6 +24,7 @@
#include <deque>
#include <fstream>
#include <iostream>
#include <string.h>
using namespace ns3;