<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
<DIV><FONT face=Arial size=2>I am installing the Galib in MFC. I have update the
</FONT></DIV>
<DIV><FONT face=Arial size=2>gaconfig.h with following information,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#if
defined(_MSC_VER)<BR> #pragma warning
(disable : 4244)<BR> #pragma warning
(disable : 4305)<BR> #endif</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#define USE_OLD_STREAMS</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but when I compiled the ex1, the following link
errors happened,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Linking...<BR>ex1.obj : error LNK2001: unresolved
external symbol "public: virtual __thiscall
GA2DBinaryStringGenome::~GA2DBinaryStringGenome(void)" (<A
href="mailto:??1GA2DBinaryStringGenome@@UAE@XZ">??1GA2DBinaryStringGenome@@UAE@XZ</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: virtual __thiscall
GASimpleGA::~GASimpleGA(void)" (<A
href="mailto:??1GASimpleGA@@UAE@XZ">??1GASimpleGA@@UAE@XZ</A>)<BR>ex1.obj :
error LNK2001: unresolved external symbol "public: class GAGenome const &
__thiscall GAStatistics::bestIndividual(unsigned int)const " (<A
href="mailto:?bestIndividual@GAStatistics@@QBEABVGAGenome@@I@Z">?bestIndividual@GAStatistics@@QBEABVGAGenome@@I@Z</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: virtual int __thiscall
GASimpleGA::populationSize(unsigned int)" (<A
href="mailto:?populationSize@GASimpleGA@@UAEHI@Z">?populationSize@GASimpleGA@@UAEHI@Z</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: __thiscall
GASimpleGA::GASimpleGA(class GAGenome const &)" (<A
href="mailto:??0GASimpleGA@@QAE@ABVGAGenome@@@Z">??0GASimpleGA@@QAE@ABVGAGenome@@@Z</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: __thiscall
GA2DBinaryStringGenome::GA2DBinaryStringGenome(unsigned int,unsigned int,float
(__cdecl*)(class GAGenome &),void *)" (<A
href="mailto:??0GA2DBinaryStringGenome@@QAE@IIP6AMAAVGAGenome@@@ZPAX@Z">??0GA2DBinaryStringGenome@@QAE@IIP6AMAAVGAGenome@@@ZPAX@Z</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "void __cdecl GARandomSeed(unsigned
int)" (<A
href="mailto:?GARandomSeed@@YAXI@Z">?GARandomSeed@@YAXI@Z</A>)<BR>ex1.obj :
error LNK2001: unresolved external symbol "public: void __thiscall
GAStatistics::flushScores(void)" (<A
href="mailto:?flushScores@GAStatistics@@QAEXXZ">?flushScores@GAStatistics@@QAEXXZ</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: int __thiscall
GAParameterList::set(char const *,void const *)" (<A
href="mailto:?set@GAParameterList@@QAEHPBDPBX@Z">?set@GAParameterList@@QAEHPBDPBX@Z</A>)<BR>ex1.obj
: error LNK2001: unresolved external symbol "public: int __thiscall
GAParameterList::set(char const *,double)" (<A
href="mailto:?set@GAParameterList@@QAEHPBDN@Z">?set@GAParameterList@@QAEHPBDN@Z</A>)<BR>Debug/testGA1.exe
: fatal error LNK1120: 10 unresolved externals<BR>Error executing
link.exe.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>testGA1.exe - 11 error(s), 0
warning(s)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Would you help me to resolve it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Zhou</FONT></DIV></BODY></HTML>