[galib] Compile error C2906 in VC++.NET
Jonas Karlsson
thejonas at gmail.com
Mon Nov 29 15:06:36 EST 2004
Here's what we did:
At the end of GA1DArrayGenome.h
Change
#ifdef USE_BORLAND_INST
#include <ga/GA1DArrayGenome.C>
#endif
to
#ifdef USE_BORLAND_INST
//#include <ga/GA1DArrayGenome.C>
#endif
In GARealGenome.C
Change
GA1DArrayAlleleGenome<float>::~GA1DArrayAlleleGenome(){
delete [] aset;
}
to
template <>
GA1DArrayAlleleGenome<float>::~GA1DArrayAlleleGenome(){
delete [] aset;
}
and
// instantiation (i.e. GNU wants the 'template class', borland does not).
#ifndef USE_AUTO_INST
to
// instantiation (i.e. GNU wants the 'template class', borland does not).
#include <ga/GA1DArrayGenome.C>
#ifndef USE_AUTO_INST
It is probably possible to achieve the same thing by setting the right
configuration variables
(USE_BORLAND_INST) does not seem right for Visual Studio
_jonas
More information about the galib
mailing list