[MINC-users] Compiling classify with gcc 3.4.3
Olivier Colliot
colliot at bic.mni.mcgill.ca
Mon Feb 20 09:40:31 EST 2006
Hi,
I am having trouble compiling "classify" (version 1.0, but the problem
is the same with 0.99)
It seems to me that the problem is coming from gcc 3.4.3
I included the error message at the end of the email.
It seems that the error comes from the fact that default arguments are
no longer permitted in a typedef (which is done at line 26 of the file
'class_protos.h').
Has anybody encountered the same problem ?
Thanks a lot,
Olivier
g++ -DHAVE_CONFIG_H -I. -I. -I.
-I/pclxserver/data/users/colliot/local/bictools/include -g -O2 -c -o
classify.o `test -f 'classify.cc' || echo './'`classify.cc
In file included from classify.cc:172:
./class_protos.h:26: error: default arguments are only permitted for
function parameters
./class_protos.h:26: error: default arguments are only permitted for
function parameters
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/iostream.h:31,
from ./ann/ann.h:23,
from classify.cc:176:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header. Please consider using one of the 32 headers found in
section 17.4.1.2 of the C++ standard. Examples include substituting the
<X> header for the <X.h> header for C++ includes, or <iostream> instead
of the deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
classify.cc: In function `void classify_volume()':
classify.cc:1708: error: too few arguments to function
make[2]: *** [classify.o] Error 1
make[2]: Leaving directory
`/pclxserver/data/users/colliot/local/bictools/sources/classify-1.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/pclxserver/data/users/colliot/local/bictools/sources/classify-1.0'
make: *** [all] Error 2
More information about the MINC-users
mailing list