[galib] linking error when I want to run my code in Visual Studio 2010, windows 7-64bit

Sina Porsa sina.porsa at gmail.com
Wed Jul 10 20:44:36 EDT 2013


Hi all,
I am trying to compile and run the provided examples using visual studio
2010. but unfortunately it returns the following linking errors. Any idea
how can I solve this problem?
Thanks
Sina

ex1.obj : error LNK2019: unresolved external symbol "public: virtual
__thiscall GA2DBinaryStringGenome::~GA2DBinaryStringGenome(void)"
(??1GA2DBinaryStringGenome@@UAE at XZ) referenced in function _main
1>ex1.obj : error LNK2019: unresolved external symbol "public: virtual
__thiscall GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)
referenced in function _main
1>ex1.obj : error LNK2019: unresolved external symbol "public: class
GAGenome const & __thiscall GAStatistics::bestIndividual(unsigned int)const
" (?bestIndividual at GAStatistics@@QBEABVGAGenome@@I at Z) referenced in
function _main
1>ex1.obj : error LNK2019: unresolved external symbol "public: virtual int
__thiscall GASimpleGA::populationSize(unsigned int)"
(?populationSize at GASimpleGA@@UAEHI at Z) referenced in function _main
1>ex1.obj : error LNK2019: unresolved external symbol "public: __thiscall
GASimpleGA::GASimpleGA(class GAGenome const &)" (??0GASimpleGA@
@QAE at ABVGAGenome@@@Z) referenced in function _main
1>ex1.obj : error LNK2019: unresolved external symbol "public: __thiscall
GA2DBinaryStringGenome::GA2DBinaryStringGenome(unsigned int,unsigned
int,float (__cdecl*)(class GAGenome &),void *)" (??0GA2DBinaryStringGenome@
@QAE at IIP6AMAAVGAGenome@@@ZPAX at Z) referenced in function _main
1>ex1.obj : error LNK2019: unresolved external symbol "void __cdecl
GARandomSeed(unsigned int)" (?GARandomSeed@@YAXI at Z) referenced in function
_main
1>ex1.obj : error LNK2019: unresolved external symbol "public: void
__thiscall GAStatistics::flushScores(void)" (?flushScores at GAStatistics@@QAEXXZ)
referenced in function "public: virtual void __thiscall
GAGeneticAlgorithm::evolve(unsigned int)" (?evolve at GAGeneticAlgorithm
@@UAEXI at Z)
1>ex1.obj : error LNK2019: unresolved external symbol "public: int
__thiscall GAParameterList::set(char const *,void const *)"
(?set at GAParameterList@@QAEHPBDPBX at Z) referenced in function "public: int
__thiscall GAParameterList::set(char const *,unsigned int)"
(?set at GAParameterList@@QAEHPBDI at Z)
1>ex1.obj : error LNK2019: unresolved external symbol "public: int
__thiscall GAParameterList::set(char const *,double)" (?set at GAParameterList
@@QAEHPBDN at Z) referenced in function "public: float __thiscall
GAGeneticAlgorithm::pCrossover(float)" (?pCrossover at GAGeneticAlgorithm
@@QAEMM at Z)
1>c:\Sina\uni\GAlib Tests\Vs2010\vcpp2010\Debug\ex1.exe : fatal error
LNK1120: 10 unresolved externals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20130711/21a07692/attachment.htm


More information about the galib mailing list