GA
GA copied to clipboard
Error during "make test"
I get the following error when I do make test:
g++ -g -Wall -I.. -c GA1DArrayGenome.C
GA1DArrayGenome.C: In constructor ‘GA1DArrayAlleleGenome<T>::GA1DArrayAlleleGenome(unsigned int, const GAAlleleSet<T>&, GAGenome::Evaluator, void*)’:
GA1DArrayGenome.C:225:75: error: there are no arguments to ‘initializer’ that depend on a template parameter, so a declaration of ‘initializer’ must be available [-fpermissive]
initializer(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_INITIALIZER);
^
GA1DArrayGenome.C:225:75: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
GA1DArrayGenome.C:226:67: error: there are no arguments to ‘mutator’ that depend on a template parameter, so a declaration of ‘mutator’ must be available [-fpermissive]
mutator(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_MUTATOR);
^
GA1DArrayGenome.C: In constructor ‘GA1DArrayAlleleGenome<T>::GA1DArrayAlleleGenome(const GAAlleleSetArray<T>&, GAGenome::Evaluator, void*)’:
GA1DArrayGenome.C:241:75: error: there are no arguments to ‘initializer’ that depend on a template parameter, so a declaration of ‘initializer’ must be available [-fpermissive]
initializer(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_INITIALIZER);
^
GA1DArrayGenome.C:242:67: error: there are no arguments to ‘mutator’ that depend on a template parameter, so a declaration of ‘mutator’ must be available [-fpermissive]
mutator(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_MUTATOR);
I am using:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.3.1 20170306 (GCC)
``