Problem using GAlib with VC++6.0 (one more!)

Samuel Danthine samd at troi.cc.rochester.edu
Sat Aug 24 14:30:05 EDT 2002


Hi all,

I have problems using GAlib with VC++6.0.
I have made a static library project and changed the setting. Now I have 
started another project using ex1.C (renamed Opta.cpp) and get the 
following message:

Opta.cpp
Linking...
Opta.obj : error LNK2001: unresolved external symbol "public: virtual 
__thiscall GA2DBinaryStringGenome::~GA2DBinaryStringGenome(void)" 
(??1GA2DBinaryStringGenome@@UAE at XZ)
Opta.obj : error LNK2001: unresolved external symbol "public: virtual 
__thiscall GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)
Opta.obj : error LNK2001: unresolved external symbol "public: virtual int 
__thiscall GASimpleGA::populationSize(unsigned int)" 
(?populationSize at GASimpleGA@@UAEHI at Z)
Opta.obj : error LNK2001: unresolved external symbol "public: __thiscall 
GASimpleGA::GASimpleGA(class GAGenome const &)" 
(??0GASimpleGA@@QAE at ABVGAGenome@@@Z)
Opta.obj : error LNK2001: unresolved external symbol "public: __thiscall 
GA2DBinaryStringGenome::GA2DBinaryStringGenome(unsigned int,unsigned 
int,float (__cdecl*)(class GAGenome &),void *)" 
(??0GA2DBinaryStringGenome@@QAE at IIP6AMAAVGAGenome@@@ZPAX at Z)
Opta.obj : error LNK2001: unresolved external symbol "void __cdecl 
GARandomSeed(unsigned int)" (?GARandomSeed@@YAXI at Z)
Opta.obj : error LNK2001: unresolved external symbol "public: void 
__thiscall GAStatistics::flushScores(void)" (?flushScores at GAStatistics@@QAEXXZ)
Opta.obj : error LNK2001: unresolved external symbol "public: int 
__thiscall GAParameterList::set(char const *,void const *)" 
(?set at GAParameterList@@QAEHPBDPBX at Z)
Opta.obj : error LNK2001: unresolved external symbol "public: int 
__thiscall GAParameterList::set(char const *,double)" 
(?set at GAParameterList@@QAEHPBDN at Z)
Debug/Opta.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.

Opta.exe - 10 error(s), 0 warning(s)

Hope someone can help me resolve this!

Thanks

Sam

******************************************************************************** 

Samuel Danthine
Department of Economics
University of Rochester
238 Harkness Hall
Rochester, NY 14627

Phone:(585) 275 5287
Fax: (585) 256 2309
E-mail: samd at troi.cc.rochester.edu
Homepage: http://troi.cc.rochester.edu/~samd
---------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20020824/5b50f8e8/attachment.htm


More information about the galib mailing list