GAlib and MS Visual C++
luis_nunez@hp.com
luis_nunez at hp.com
Tue Jun 6 17:23:35 EDT 2000
I fixed some problems compiling the ex9.c source code. But now, when I build
the exe file, I got the following messages:
--------------------Configuration: ex9 - Win32 Debug--------------------
Linking...
ex9.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall
GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)
ex9.obj : error LNK2001: unresolved external symbol "public: float __thiscall
GABin2DecGenome::phenotype(unsigned int)const "
(?phenotype at GABin2DecGenome@@QBEMI at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: class GAGenome
const & __thiscall GAStatistics::bestIndividual(unsigned int)const "
(?bestIndividual at GAStatistics@@QBEABVGAGenome@@I at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual int
__thiscall GASimpleGA::populationSize(unsigned int)"
(?populationSize at GASimpleGA@@UAEHI at Z)
ex9.obj : error LNK2001: unresolved external symbol "float
gaDefSigmaTruncationMultiplier" (?gaDefSigmaTruncationMultiplier@@3MA)
ex9.obj : error LNK2001: unresolved external symbol "public: __thiscall
GASimpleGA::GASimpleGA(class GAGenome const &)"
(??0GASimpleGA@@QAE at ABVGAGenome@@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: void __thiscall
GABin2DecPhenotype::add(unsigned int,float,float)"
(?add at GABin2DecPhenotype@@QAEXIMM at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall GASigmaTruncationScaling::evaluate(class GAPopulation const &)"
(?evaluate at GASigmaTruncationScaling@@UAEXABVGAPopulation@@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: float __thiscall
GASigmaTruncationScaling::multiplier(float)"
(?multiplier at GASigmaTruncationScaling@@QAEMM at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: void __thiscall
GAStatistics::flushScores(void)" (?flushScores at GAStatistics@@QAEXXZ)
ex9.obj : error LNK2001: unresolved external symbol "public: int __thiscall
GAParameterList::set(char const *,void const *)"
(?set at GAParameterList@@QAEHPBDPBX at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: int __thiscall
GAParameterList::set(char const *,double)" (?set at GAParameterList@@QAEHPBDN at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: int __thiscall
GAStatistics::flushFrequency(unsigned int)"
(?flushFrequency at GAStatistics@@QAEHI at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: class
GAScalingScheme & __thiscall GAPopulation::scaling(class GAScalingScheme const
&)" (?scaling at GAPopulation@@QAEAAVGAScalingScheme@@ABV2@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: __thiscall
GABin2DecPhenotypeCore::GABin2DecPhenotypeCore(void)"
(??0GABin2DecPhenotypeCore@@QAE at XZ)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual int
__thiscall GABin2DecGenome::notequal(class GAGenome const &)const "
(?notequal at GABin2DecGenome@@UBEHABVGAGenome@@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual int
__thiscall GABin2DecGenome::equal(class GAGenome const &)const "
(?equal at GABin2DecGenome@@UBEHABVGAGenome@@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall GABin2DecGenome::copy(class GAGenome const &)"
(?copy at GABin2DecGenome@@UAEXABVGAGenome@@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual class
GAGenome * __thiscall GABin2DecGenome::clone(enum GAGenome::CloneMethod)const "
(?clone at GABin2DecGenome@@UBEPAVGAGenome@@W4CloneMethod at 2@@Z)
ex9.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall
GA1DBinaryStringGenome::~GA1DBinaryStringGenome(void)"
(??1GA1DBinaryStringGenome@@UAE at XZ)
ex9.obj : error LNK2001: unresolved external symbol "int __cdecl
GABinaryDecode(float &,unsigned char const *,unsigned int,float,float)"
(?GABinaryDecode@@YAHAAMPBEIMM at Z)
ex9.obj : error LNK2001: unresolved external symbol "int __cdecl
GABinaryEncode(float &,unsigned char *,unsigned int,float,float)"
(?GABinaryEncode@@YAHAAMPAEIMM at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: static float
__cdecl GA1DBinaryStringGenome::BitComparator(class GAGenome const &,class
GAGenome const &)" (?BitComparator at GA1DBinaryStringGenome@@SAMABVGAGenome@@0 at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: __thiscall
GA1DBinaryStringGenome::GA1DBinaryStringGenome(unsigned int,float
(__cdecl*)(class GAGenome &),void *)"
(??0GA1DBinaryStringGenome@@QAE at IP6AMAAVGAGenome@@@ZPAX at Z)
ex9.obj : error LNK2001: unresolved external symbol "public: __thiscall
GABin2DecPhenotypeCore::GABin2DecPhenotypeCore(class GABin2DecPhenotypeCore
const &)" (??0GABin2DecPhenotypeCore@@QAE at ABV0@@Z)
Debug/ex9.exe : fatal error LNK1120: 25 unresolved externals
Error executing link.exe.
Some Idea?
Thanks in advance.
Regards.
Salud!
NACHO
More information about the galib
mailing list