vc errors

ian.d.wilson@btinternet.com ian.d.wilson at btinternet.com
Wed Oct 3 12:12:16 EDT 2001


Is your path to your ga directory set within your directories option?

To check, look under the tools menu for the item options and then click on the directories tab. If you haven't added a path to your ga parent folder do so (if you have included the ga.h as ga/ga.h then you don't have to add the 'ga' folder). Hope that makes sense.

Also, make sure that you have included the galib.lib library. Do this by adding files to the project and then add the galib.lib file you created when you built the library.

If it is included, it might be worth removing it and then add it again to make sure it contains the correct information.

One of both of these suggestions should hopefully work.

Best wishes

Ian

Dr. I.D.Wilson
Research Fellow
AI Technologies Modelling Group
University of Glamorgan
(01443) 482268

> Hi, I am able to compile but now iam getting this 
> error...
> 
> would appreciate inputs,
> 
> Linking...
> 
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: virtual __thiscall 
> GA2DBinaryStringGenome::~GA2DBinaryStringGenome(void)" 
> (??1GA2DBinaryStringGenome@@UAE at XZ)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: virtual __thiscall 
> GASimpleGA::~GASimpleGA(void)" (??1GASimpleGA@@UAE at XZ)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: class GAGenome const & __thiscall 
> GAStatistics::bestIndividual(unsigned int)const " (?
> bestIndividual at GAStatistics@@QBEABVGAGenome@@I at Z)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: virtual int __thiscall 
> GASimpleGA::populationSize(unsigned int)" (?
> populationSize at GASimpleGA@@UAEHI at Z)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: __thiscall GASimpleGA::GASimpleGA(class 
> GAGenome const &)" (??0GASimpleGA@@QAE at ABVGAGenome@@@Z)
> ex1.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)
> ex1.obj : error LNK2001: unresolved external 
> symbol "void __cdecl GARandomSeed(unsigned int)" (?
> GARandomSeed@@YAXI at Z)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: void __thiscall 
> GAStatistics::flushScores(void)" (?
> flushScores at GAStatistics@@QAEXXZ)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: int __thiscall GAParameterList::set
> (char const *,void const *)" (?
> set at GAParameterList@@QAEHPBDPBX at Z)
> ex1.obj : error LNK2001: unresolved external 
> symbol "public: int __thiscall GAParameterList::set
> (char const *,double)" (?
> set at GAParameterList@@QAEHPBDN at Z)
> Debug/ex1.exe : fatal error LNK1120: 10 unresolved 
> externals
> Error executing link.exe.
> 
> ex1.exe - 11 error(s), 0 warning(s)
> 





More information about the galib mailing list