Help for GAlib++

Ian Wilson ian.d.wilson at btinternet.com
Wed Dec 19 04:27:10 EST 2001


Down load the galib244-win.zip, that's the quickest and easiest thing to do,
I think.

I found it easier to make the changes to 244, bringing it up to 245, than
starting with 245 and trying to get that to fit into VC++.

The galib244-win provides the necessary project settings, making it much
easier to get going.

Once you have that, build the galib project and then add a reference to the
galib.lib it creates within your projects.

Hope that helps a little.

Ian

P.S. Check under tools, options, directories and make sure you have a the
path to the galib included there.


----- Original Message -----
From: "yuhuanan" <yuhuanan at up369.com>
To: <galib at mit.edu>
Sent: Wednesday, December 19, 2001 5:43 PM
Subject: Help for GAlib++


> Dear Webmaster:
>   I am  a graduate in China.I have gotten a copy of GALib++ from your ftp
site.The GaLib++ library is a so useful tool for me to do genetic-algorithm
related programming.When i was working on it,I have encountered some
problems.
> I will be very grateful if you can tell me how to deal with these
problems.Here is my problem:
> when i compiled the GaDemo project with microsoft Visual C++6,I got the
following error message: can not open file
"..\galib-2.4.4\projects\library\Debug\galib.lib".I browsered through the
directory of GaLib++,I could not find the galib.lib. I excluded the
galib.lib from the project and got the projected compiled.Howerver,I got the
following error message:
>
> Linking...
> gademoView.obj : error LNK2001: unresolved external symbol "void __cdecl
GAErr(class GASourceLocator,char const *,char const *,enum GAErrorIndex,char
const *,char const *)"
(?GAErr@@YAXVGASourceLocator@@PBD1W4GAErrorIndex@@11 at Z)
> gademoView.obj : error LNK2001: unresolved external symbol "float __cdecl
ran2(void)" (?ran2@@YAMXZ)
> gademoView.obj : error LNK2001: unresolved external symbol "double __cdecl
GAUnitGaussian(void)" (?GAUnitGaussian@@YANXZ)
> gademoView.obj : error LNK2001: unresolved external symbol "public: int
__thiscall GAParameterList::set(char const *,double)"
(?set at GAParameterList@@QAEHPBDN at Z)
> gademoView.obj : error LNK2001: unresolved external symbol "public: int
__thiscall GAParameterList::set(char const *,void const *)"
(?set at GAParameterList@@QAEHPBDPBX at Z)
> gademoView.obj : error LNK2001: unresolved external symbol "public:
__thiscall GASimpleGA::GASimpleGA(class GAGenome const &)"
(??0GASimpleGA@@QAE at ABVGAGenome@@@Z)
> gademoView.obj : error LNK2001: unresolved external symbol "public:
__thiscall GADemeGA::GADemeGA(class GAGenome const &)"
(??0GADemeGA@@QAE at ABVGAGenome@@@Z)
> gademoView.obj : error LNK2001: unresolved external symbol "public:
__thiscall GAIncrementalGA::GAIncrementalGA(class GAGenome const &)"
(??0GAIncrementalGA@@QAE at ABVGAGenome@@@ ...........
> Debug/gademo.exe : fatal error LNK1120: 55 unresolved externals
> Error executing link.exe.
>    Then I did not know how to do .I am looking forward to your answers.
>             yours truely
>            yuhuanan at up369.com
>





More information about the galib mailing list