“Undefined symbols” linker error with simple template class

后端 未结 3 821
遥遥无期
遥遥无期 2020-11-30 09:43

Been away from C++ for a few years and am getting a linker error from the following code:

Gene.h

#ifndef GENE_H_INCLUDED
#define GENE_H_INCLUDED

tem         


        
3条回答
  •  独厮守ぢ
    2020-11-30 10:29

    In if(value >= this->minValue && value <= this->minValue) the second minValue should be maxValue, no?

    Echo what Sean said: What's the error message? You've defined and declared the functions, but you've not used them in anything anywhere, nor do I see an error (besides the typo).

提交回复
热议问题