Re: Commited changes on branch r1-3-1, please test
Frieder Ferlemann <[email protected]> Sat, 03 Jan 2009 17:28:01 +0100
| Newsgroups | gmane.games.torcs.devel |
|---|---|
| Organization | schlecht organisiert |
| Message-ID | <[email protected]> |
I forgot to mention: I still need the patch of Miguel Martínez: http://sourceforge.net/mailarchive/message.php?msg_name=20081124195334.48c56feb%40lcpybm otherwise compilation fails with: g++ -I/home/fe/torcs/torcs/export/include -I/home/fe/torcs/torcs -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H -Wno-deprecated -c K1999.cpp K1999.cpp:15:22: error: iostream.h: Datei oder Verzeichnis nicht gefunden K1999.cpp:26:21: error: iomanip.h: Datei oder Verzeichnis nicht gefunden K1999.cpp:29:21: error: fstream.h: Datei oder Verzeichnis nicht gefunden K1999.cpp:105: error: ‘ostream’ has not been declared K1999.cpp: In function ‘void initTrack(int, tTrack*, void*, void**, tSituation*)’: K1999.cpp:525: error: ‘ends’ was not declared in this scope The appended patch is against today's CVS, > diff -u src/drivers/K1999/K1999.cpp.orig src/drivers/K1999/K1999.cpp >K1999.cpp.patch Greetings, Frieder ------------------------------------------------------------------------------ _______________________________________________ Torcs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-devel
K1999.cpp.patch
(text/x-patch, 870 B)
--- src/drivers/K1999/K1999.cpp.orig 2009-01-03 16:57:21.000000000 +0100 +++ src/drivers/K1999/K1999.cpp 2009-01-03 17:10:28.000000000 +0100 @@ -12,7 +12,7 @@ // (at your option) any later version. // //////////////////////////////////////////////////////////////////////////// -#include <iostream.h> +#include <iostream> #ifndef WIN32 #if defined(__GNUC__) && __GNUC__ > 2 @@ -23,10 +23,11 @@ #endif // WIN32 -#include <iomanip.h> +#include <iomanip> #include <math.h> #include <stdlib.h> -#include <fstream.h> +#include <fstream> +#include <iterator> #include "tgf.h" #include "track.h" @@ -35,6 +36,8 @@ #include "robot.h" #include "robottools.h" +using namespace std; + //////////////////////////////////////////////////////////////////////////// // Parameters ////////////////////////////////////////////////////////////////////////////