galib 245

Daniel RSDA at eee.rgu.ac.uk
Mon Apr 9 05:35:29 EDT 2001


Hi,

These links should probably help you in solving your problem. 
There are for VC++ 6, but I presume that it should be similar with 
VC++5:

http://lancet.mit.edu/galib-mail-archive/355.html
http://lancet.mit.edu/galib-mail-archive/354.html

the below message is from Dr. Ian Wilson who helped me a lot 
when I had all sort of problems. Probably it would be a better 
choice if you download the following version of the galib (if you 
haven't done so already).

Daniel,

I am not sure which galib-2.4.4 you downloaded, there are two on 
the FTP
site, namely:
    the galib244.zip;
    and the galib244-win.zip (which, unlike the above, contains a 
projects
folder).

I have just downloaded the galib244-win.zip at home, built it, and 
then
downloaded both Windows demos (gademo and tspdemo), added 
them to the
workspace that is created by the galib244-win.zip and built them 
too (after
adjusting the referencing of the galib.lib). Aside from a few 
compilation
warnings (I didn't include the warning suppression code in the 
gaconfig.h
file), the console example and both windows examples work fine.

You have probably done the same, but knowing for certain will help 
me assist
you (should you require any further guidance).

Good luck,

Ian

Regards,
Daniel

Date forwarded: 	Sun, 8 Apr 2001 16:31:36 GMT
Date sent:      	Sun, 08 Apr 2001 18:28:35 +0200
To:             	galib at MIT.EDU
From:           	"G.Spagnuolo" <spanish at ieee.org>
Subject:        	galib 245
Forwarded by:   	galib at lancet.mit.edu

> I've compiled galib 245 without any error/warning, but compiling ex25 (for 
> example, but whatever program using the library) I receive the following 
> messages.
> I have used the project file for vc++5.0 available with galib by ftp.
> 
> Any suggestion?
> 
> Thanks in advance (a lot).
> 
> Best Regards.
> 
> G.Spagnuolo
> 
> 
> --------------------Configuration: ex25 - Win32 Debug--------------------
> Compiling...
> ex25.C
> ..\..\ga/gaerror.h(123) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAGenome.h(210) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAGenome.h(212) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAGenome.h(278) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAGenome.h(278) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAGenome.h(280) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAGenome.h(280) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GA1DBinStrGenome.h(79) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GA1DBinStrGenome.h(80) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAParameter.h(94) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAParameter.h(96) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAParameter.h(107) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAParameter.h(107) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAParameter.h(109) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAParameter.h(109) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(177) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(178) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(222) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(222) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(224) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAPopulation.h(224) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GAStatistics.h(97) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAStatistics.h(99) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAStatistics.h(206) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GAStatistics.h(206) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GABaseGA.h(142) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GABaseGA.h(144) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GABaseGA.h(157) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GADemeGA.h(99) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GADemeGA.h(99) : error C2872: 'ostream' : ambiguous symbol
> ..\..\ga/GADemeGA.h(101) : error C2872: 'istream' : ambiguous symbol
> ..\..\ga/GADemeGA.h(101) : error C2872: 'istream' : ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(18) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(19) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(20) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(20) : error C2784: 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &__cdecl 
> std::endl(class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &)' : 
> could not deduce
>   template argument for 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &' from 
> 'class ostream &'
> C:\giovanni\visual\galib245\examples\ex25.C(20) : error C2784: 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &__cdecl 
> std::endl(class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &)' : 
> could not deduce
>   template argument for 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &' from 
> 'class ostream &'
> C:\giovanni\visual\galib245\examples\ex25.C(41) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(41) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(43) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(43) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(46) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(46) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(48) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(48) : error C2784: 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &__cdecl 
> std::endl(class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &)' : 
> could not deduce
>   template argument for 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &' from 
> 'class ostream &'
> C:\giovanni\visual\galib245\examples\ex25.C(48) : error C2784: 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &__cdecl 
> std::endl(class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &)' : 
> could not deduce
>   template argument for 'class 
> std::basic_ostream<`template-parameter-1',`template-parameter-2'> &' from 
> 'class ostream &'
> C:\giovanni\visual\galib245\examples\ex25.C(50) : error C2872: 'cout' : 
> ambiguous symbol
> C:\giovanni\visual\galib245\examples\ex25.C(51) : error C2872: 'cout' : 
> ambiguous symbol
> Error executing cl.exe.
> 
> ex25.exe - 48 error(s), 0 warning(s)
> 
> --
> Dr. Giovanni Spagnuolo, Ph.D.
> Assistant Professor
> University of Salerno
> Dipartimento di Ingegneria dell'Informazione ed Ingegneria Elettrica
> D.I.I.I.E.
> Via Ponte Don Melillo
> 84084 Fisciano - Salerno - Italy
> phone: +39 089 964258
> fax: +39 089 964218
> e-mail: spanish at ieee.org
> 
> "You can tell whether a man is clever by his answers.
> You can tell whether a man is wise by his questions."
> Naguib Mahfouz
> 






More information about the galib mailing list