From: Stéphan K. <ske...@xs...> - 2009-01-13 06:01:14
|
Try placing it in src/drivers/K1999 as well, after the #include's. > On Tue, Jan 13, 2009 at 9:18 AM, Stéphan Kempkes <ske...@xs...> > wrote: >> Might be a silly question, but who knows: is "using namespace std;" >> still >> in there? > > Grep says: > > export/include/3D/Tuple3.h:using namespace std; > export/include/3D/Tuple4.h:using namespace std; > src/modules/simu/simuv2/SOLID-2.0/include/3D/Tuple3.h:using namespace std; > src/modules/simu/simuv2/SOLID-2.0/include/3D/Tuple4.h:using namespace std; > > Slainte, > Jonathan > >> >>> Greetings all, >>> >>> The technical basics: >>> >>> Debian testing with custom 2.6.27 kernel >>> gcc/g++ 4.3.2 >>> TORCS 1.3.1 via CVS using "cvs -z5 >>> -d:pserver:ano...@to...:/cvsroot/torcs co -r >>> r1-3-1 -P torcs" >>> >>> Following niggling problems after switching to r1-3-1, I deleted the >>> entire torcs/src directory and all other files in torcs/ and checked >>> them out fresh. This solved my first set of problems where simuv3 >>> failed to compile. >>> >>> The problem now: >>> >>> Compile fails for src/drivers/K1999. Following the lead of the earlier >>> announcement of 1.3.1-test1, I changed the following lines in >>> K1999.cpp: >>> >>> Replace #include <iostream.h> with #include <iostream> >>> Replace #include <iomanip.h> with #include <iomanip> >>> Replace #include <fstream.h> with #include <fstream> >>> >>> Build now fails with the following output: >>> >>> ====== >>> >>> g++ -I/usr/local/source/CVS/torcs/torcs/torcs/export/include >>> -I/usr/local/source/CVS/torcs/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: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 >>> make[3]: *** [K1999.o] Error 1 >>> >>> ====== >>> >>> Sincerely, >>> Jonathan >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> Torcs-users mailing list >>> Tor...@li... >>> https://lists.sourceforge.net/lists/listinfo/torcs-users >>> >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Torcs-users mailing list >> Tor...@li... >> https://lists.sourceforge.net/lists/listinfo/torcs-users >> > > > > -- > ======= > Those who can, do. Those who can't, rabbit on about > it:http://sumdubito.blogspot.com/ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Torcs-users mailing list > Tor...@li... > https://lists.sourceforge.net/lists/listinfo/torcs-users > > |