bugTop10 Racing Simulation - Bugs: bug #14286, Top10 0.3 fails to compile with...

 
 

bug #14286: Top10 0.3 fails to compile with gcc 4

Submitter:  Johann Deneux <jdeneux>
Submitted:  Thu 25 Aug 2005 08:32:11 PM UTC
   
 
Category:  None Severity:  2 - Minor
Status:  Ready For Test Privacy:  Public
Assigned to:  jdeneux Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 19 Nov 2006 09:17:18 AM UTC, comment #4: 

if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated

mccoy <mccoy2006>
Sun 18 Sep 2005 05:04:59 PM UTC, comment #3: 

Yes, this particular issue is solved in cvs.

Note that I had to copy the data directory over from the 0.3 tarball in order to have autogen.sh working. However, I assume it's more or less intended...

Unfortunately, this only lead me to further compiler complaints, which I am gradually trying to correct.

The first one concerned src/math/Vertex.hh :
on line 34,
     extern "C" double sqrt(double);
must be replaced by :
     extern "C" double sqrt(double) throw ();

That lead me to the next problem : ReadCal3d.hh wanted to include the non-existent header cal3d/cal3d.h . It was of course solved by installing cal3d. It would be nice to check for this in the configure script (and to adapt README.txt now that Cal3d supported is being implemented), but I'm not very familiar with autotools... I guess there must be a macro for this available somewhere but I didn't look for it.

Lastly, in src/helpers/GenericOctree-template.cpp on line 276, "blocks" is used before being declared a few lines later. Moving the declaration above it solved the problem.

Hey, that's it, it just compiled successfully ! Now let see how that beast runs :)

Bruno Roggeri <mpomme>
Sun 18 Sep 2005 03:42:59 PM UTC, comment #2: 
[Fix]

I had the same problem with gcc 3.4.2 on win32, and it's now fixed. Hopefuly it's also fixed for gcc 4 and 3.4.4.
Please let me know if it really is (or not)

Johann Deneux <jdeneux>
Group administrator
Sun 18 Sep 2005 01:02:55 PM UTC, comment #1: 

Same errors here with gcc 3.4.4

Bruno Roggeri <mpomme>
Thu 25 Aug 2005 08:32:11 PM UTC, original submission:  

From Pascal Giard:

Making all in src
make[1]: entrant dans le répertoire « /home/evilynux/top10-0.3/src »
Making all in util
make[2]: entrant dans le répertoire « /home/evilynux/top10-0.3/src/util »
if g++ -DPACKAGE_NAME=\"top10\" -DPACKAGE_TARNAME=\"top10\" -DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"top10\ 0.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"top10\" -DVERSION=\"0.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MKDIR=1 -DHAVE_TIME=1 -DHAVE_CTIME=1  -I. -I.   -DNDEBUG  -g -O2 -O3 -g1 -I../../src/ -Wall -DDATA_DIR=/usr/local/share/top10 -MT RefCount.o -MD -MP -MF ".deps/RefCount.Tpo" -c -o RefCount.o RefCount.cpp; \
then mv -f ".deps/RefCount.Tpo" ".deps/RefCount.Po"; else rm -f ".deps/RefCount.Tpo"; exit 1; fi
RefCount.hh: In constructor 'top10::util::RefArray<T>::RefArray(int)':
RefCount.hh:152: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:152: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
RefCount.hh: In copy constructor 'top10::util::RefArray<T>::RefArray(const top10::util::RefArray<T>&)':
RefCount.hh:157: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:157: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh: In member function 'top10::util::RefArray<T>& top10::util::RefArray<T>::operator=(const top10::util::RefArray<T>&)':
RefCount.hh:164: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:164: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh: In destructor 'top10::util::RefArray<T>::~RefArray()':
RefCount.hh:169: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:169: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:169: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh: In member function 'void top10::util::RefArray<T>::remove(T*)':
RefCount.hh:188: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:191: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available
RefCount.hh: In member function 'void top10::util::RefArray<T>::erase(int)':
RefCount.hh:198: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:198: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:199: error: there are no arguments to 'at' that depend on a template parameter, so a declaration of 'at' must be available
RefCount.hh:200: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available
make[2]: * [RefCount.o] Erreur 1
make[2]: quittant le répertoire « /home/evilynux/top10-0.3/src/util »
make[1]: * [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/evilynux/top10-0.3/src »
make: * [all-recursive] Erreur 1

Johann Deneux <jdeneux>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-18 jdeneux StatusNone Ready For Test
2005-08-25 jdeneux Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code