Problem using GAlib with VC++6.0 (one more!)
Edmanuel Eduardo Torres Amaris
edmanuel.torres at ecopetrol.com.co
Mon Aug 26 09:31:20 EDT 2002
Hi Samuel
That is not a truly problem, what you need is set righly the VC6 compiler.
You can do this if you make a copy of galib.lib where VC6 can find it, and
then set the project setting option in; Link/Object/Library modules
adding galib.lib library.
That's all ;)
Edmanuel
-----Original Message-----
From: Samuel Danthine
To: galib at mit.edu
Sent: 24/08/02 4:04 PM
Subject: Fwd: Problem using GAlib with VC++6.0 (one more!)
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>
http://troi.cc.rochester.edu/~samd
------------------------------------------------------------------------
---------------------------
************************************************************************
********
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>
http://troi.cc.rochester.edu/~samd
------------------------------------------------------------------------
---------------------------
More information about the galib
mailing list