[GAlib] Borland C++ Builder 6.0 - compilation problem

marcio marcio at 2com.pl
Mon Aug 9 02:41:01 EDT 2004


Hi,
I've problems with compilation of all examples (Windows XP Pro and Borland C++ 5.6 for Win32). I've created stub for library that i built in Visual 6.0 (with Coff2Omf ... ). I've added that new lib into project in builder and if I define NO_STREAMS in gaconfig.h there are 3 errors:

In ex11.cpp:
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
.......

With Visual I dont have any problems ... unfortunately i have to use Builder ...
HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!!!!
Can anyone advise me how to solve this problems?? || Can anyone send me working Borland C++ Builder 6.0 Project of GALib zipped up that works?



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


More information about the galib mailing list