tag 455186 patch thanks Martin Michlmayr <[EMAIL PROTECTED]> (09/12/2007): > Package: necpp > Version: 1.2.6+cvs20070816-1 > Usertags: ftbfs-gcc-4.3
Hi, please find attached a patch to fix this FTBFS. Cheers, -- Cyril Brulebois
--- a/src/c_geometry.cpp
+++ b/src/c_geometry.cpp
@@ -21,6 +21,8 @@
#include "nec_context.h"
#include "nec_exception.h"
+#include <cstdlib>
+
c_geometry::c_geometry()
{
n = 0;
--- a/src/c_ggrid.cpp
+++ b/src/c_ggrid.cpp
@@ -19,6 +19,8 @@
#include "common.h"
#include "nec_output.h" // for DEBUG_TRACE()
+#include <cstdlib>
+
//#define CONST4 nec_complex(0.0,em::impedance() / 2.0)
--- a/src/nec2cpp.cpp
+++ b/src/nec2cpp.cpp
@@ -53,6 +53,7 @@
#include <signal.h>
#include <vector>
#include <string>
+#include <cstdlib>
using namespace std;
--- a/src/nec_context.cpp
+++ b/src/nec_context.cpp
@@ -20,6 +20,8 @@
#include "nec_context.h"
#include "c_geometry.h"
#include "nec_exception.h"
+
+#include <cstdlib>
static char* hpol[3] = { "LINEAR", "RIGHT", "LEFT" };
--- a/src/safe_array.h
+++ b/src/safe_array.h
@@ -21,6 +21,7 @@
#include <iostream>
#include <string>
#include <sstream>
+#include <cstring>
#ifdef NEC_ERROR_CHECK
signature.asc
Description: Digital signature

