[GAlib] Builder 6.0 - NO_STREAMS problem

marcio marcio at 2com.pl
Sat Aug 7 08:52:16 EDT 2004


Hi,
I've problems with compilation of example ex11.c.

If I define NO_STREAMS in gaconfig.h there are 3 errors:
in line 
    cout << genome.score() << "):\n" << genome << "\n";
      [C++ Error] GAProg.cpp(93): E2094 'operator<<' not implemented in type '_STL::ostream' for arguments of type 'GAListGenome<int>'

in line 
      cout << ga.parameters() << "\n";
      [C++ Error] GAProg.cpp(95): E2094 'operator<<' not implemented in type '_STL::ostream' for arguments of type 'GAParameterList'

and in 
int GAListGenome<int>::write(std::ostream & os) const
{ ... }
  [C++ Error] GAProg.cpp(159): E2316 'GAListGenome<int>::write(_STL::ostream &) const' is not a member of 'GAListGenome<int>'


and if I DON'T define NO_STREAMS in gaconfig.h there are 26 errors like this :)) :

  [Linker Error] Unresolved external 'GAParameterList::~GAParameterList()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\GAPROG.OBJ
  [Linker Error] Unresolved external 'GAListGenome<int>::~GAListGenome<int>()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\GAPROG.OBJ
 .......

HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!!!!
Can anyone advise me how to solve this problems??

Marcio



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20040807/bf3f1451/attachment.htm


More information about the galib mailing list