Menu

#2 Trivila build errors in Ubuntu (patch)

open
nobody
None
5
2009-11-16
2009-11-16
Anonymous
No

I had to make the following changes in order to build on Ubuntu (Jaunty), moslty related to atoi() and exit() needing stdlib.h

Index: TestSuite/BRTest/src/buildBRTest/main.cpp

--- TestSuite/BRTest/src/buildBRTest/main.cpp (revision 340)
+++ TestSuite/BRTest/src/buildBRTest/main.cpp (working copy)
@@ -97,6 +97,7 @@

============================================================ */

+#include <stdlib.h>
#include "getopt.h"
#include "BuildBR2DLL.h"

Index: TestSuite/BRTest/src/runBRTest/TestDevice.cpp

--- TestSuite/BRTest/src/runBRTest/TestDevice.cpp (revision 340)
+++ TestSuite/BRTest/src/runBRTest/TestDevice.cpp (working copy)
@@ -97,7 +97,7 @@

============================================================ */

-
+#include <stdlib.h>
#include "TestDevice.h"
#include "Module.h"
#include "BRTest.h"
Index: TestSuite/BRTest/src/runBRTest/TestController.cpp
===================================================================
--- TestSuite/BRTest/src/runBRTest/TestController.cpp (revision 340)
+++ TestSuite/BRTest/src/runBRTest/TestController.cpp (working copy)
@@ -117,6 +117,7 @@
#include <string>
#include <fstream>
#include <cstdio>
+#include <stdlib.h>

using namespace std;
unsigned int total = 1;
Index: TestSuite/BRTest/src/runBRTest/TestController.h
===================================================================
--- TestSuite/BRTest/src/runBRTest/TestController.h (revision 340)
+++ TestSuite/BRTest/src/runBRTest/TestController.h (working copy)
@@ -110,6 +110,8 @@

#include <list>
#include <map>
+#include <string>
+#include <stdio.h>

// Forward declaration of Module
class Module;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.