[galib] gcc 4.8.1 compilation problems on archlinux

Awhan Patnaik awimagic at gmail.com
Fri Aug 2 04:11:21 EDT 2013


hello all

on archlinux with the gcc version 4.8.1 while the library compiles ok
i get compilation failure for ex17.C.

on trying with clang++ even the lib fails compilation

GA1DArrayGenome.C:225:3: error: use of undeclared identifier 'initializer'
  initializer(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_INITIALIZER);
  ^
GA1DArrayGenome.C:226:3: error: use of undeclared identifier 'mutator'
  mutator(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_MUTATOR);
  ^
GA1DArrayGenome.C:241:3: error: use of undeclared identifier 'initializer'
  initializer(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_INITIALIZER);
  ^
GA1DArrayGenome.C:242:3: error: use of undeclared identifier 'mutator'
  mutator(GA1DArrayAlleleGenome<T>::DEFAULT_1DARRAY_ALLELE_MUTATOR);

$ clang++ --version
clang version 3.3 (tags/RELEASE_33/final)
Target: i386-pc-linux-gnu
Thread model: posix

however on a red hat box with gcc (GCC) 4.0.0 20050519 (Red Hat
4.0.0-8) the entire compilation succeeds.

the gcc error is also caused by GA1DArrayGenome.C but clang++ catches
it before gcc does therefore i have only provided the clang++ error
message.

any pointers to how to solve this?


More information about the galib mailing list