trunk doesnt compile [message #8849] |
Thu, 11 June 2009 16:49 |
M.Babai
Messages: 46 Registered: January 2008 Location: Netherlands
|
continuous participant |
From: *KVI.nl
|
|
Hi all,
I was trying to compile r-5801, but got the following error:
pandaroot/genfit/RecoHitFactory.h:16,
from /home0/fairroot/pandaroot/genfit/RecoHitFactory.cxx:1:
/home0/fairroot/pandaroot/genfit/RecoHitProducer.h: In member function 'virtual AbsRecoHit* RecoHitProducer<hit_T, recoHit_T>::produce(int)':
/home0/fairroot/pandaroot/genfit/RecoHitProducer.h:100: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
/home0/fairroot/pandaroot/genfit/RecoHitProducer.h:100: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home0/fairroot/pandaroot/genfit/RecoHitProducer.h:101: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available
make[2]: *** [genfit/CMakeFiles/genfit.dir/RecoHitFactory.o] Error 1
make[1]: *** [genfit/CMakeFiles/genfit.dir/all] Error 2
make: *** [all] Error 2
Cheers.
|
|
|
Re: trunk doesnt compile [message #8850 is a reply to message #8849] |
Thu, 11 June 2009 17:14 |
Anonymous Poster
|
|
From: *pool.einsundeins.de
|
|
Hi,
sorry about that. On my machine it compiled. I commited a fix. Can you please check if the error is gone (since my system doesnt seem to be so picky).
Cheers, Christian
|
|
|
|
Re: trunk doesnt compile [message #8854 is a reply to message #8853] |
Thu, 11 June 2009 23:11 |
Anonymous Poster
|
|
From: *pool.einsundeins.de
|
|
Hi,
well thank YOU for finding the bug. I use gcc 4.0 on Mac OSX. But the mistake I made was really bad (forgot to include assert.h), and I have no idea how it could slip through the compiler...
Cheers, Christian
|
|
|
Re: trunk doesnt compile [message #8856 is a reply to message #8854] |
Fri, 12 June 2009 10:39 |
M.Babai
Messages: 46 Registered: January 2008 Location: Netherlands
|
continuous participant |
From: *KVI.nl
|
|
hmmmmmm!, I don't know either. But as far as I know, it is a problem (feature of) older compilers. To avoid this, the gcc people are now reorganizing it. So, hopefully it becomes even more restrictive with better error messages and cleaner generated code (objects).
Cheers
/MB
|
|
|