HELP : Compile problems with Visual C++ 6
Olivier DAVY
olivier.davy at free.fr
Sun Jan 13 08:05:39 EST 2002
Olivier DAVY
Graduate in CS
France
Hi,
I am currently trying to compile ex1.C under Visual C++ 6 (galib245),
but I have the following error message (please find it enclosed at the end of this message), although the library files are compiled without any errors.
As I'm not really literate with visual C, and very interested in using GALIB after having written my own GA programs, I would be grateful if someone can help me to solve this tricky problem.
Thank you for your time. I am looking forward to your reply.
Olive
ERROR MESSAGE
--------------------Configuration: library - Win32 Debug--------------------
Compiling...
ex1.C
..\..\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/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/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/GASimpleGA.h(64) : error C2872: 'ostream' : ambiguous symbol
..\..\ga/GASimpleGA.h(64) : error C2872: 'ostream' : ambiguous symbol
..\..\ga/GASimpleGA.h(66) : error C2872: 'istream' : ambiguous symbol
..\..\ga/GASimpleGA.h(66) : error C2872: 'istream' : ambiguous symbol
..\..\ga/GA2DBinStrGenome.h(63) : error C2872: 'istream' : ambiguous symbol
..\..\ga/GA2DBinStrGenome.h(64) : error C2872: 'ostream' : ambiguous symbol
..\..\ga/GA2DBinStrGenome.h(63) : error C2872: 'cin' : ambiguous symbol
..\..\ga/GA2DBinStrGenome.h(64) : error C2872: 'cout' : ambiguous symbol
D:\travail\GA\galib245\examples\ex1.C(28) : error C2872: 'cout' : ambiguous symbol
D:\travail\GA\galib245\examples\ex1.C(29) : error C2872: 'cout' : ambiguous symbol
D:\travail\GA\galib245\examples\ex1.C(30) : error C2872: 'cout' : ambiguous symbol
D:\travail\GA\galib245\examples\ex1.C(30) : error C2872: 'cout' : ambiguous symbol
D:\travail\GA\galib245\examples\ex1.C(70) : error C2872: 'cout' : ambiguous symbol
Error executing cl.exe.
ex1.obj - 39 error(s), 0 warning(s)
---------------------------------------
Olivier DAVY
ENSIMAG engineer - HEC Master
E-mail : olivier.davy at free.fr
tél : +33/(0)1.39.67.89.39
---------------------------------------
More information about the galib
mailing list