Menu

#224 missing overload

open
nobody
5
2009-12-01
2009-12-01
Anonymous
No

the following overload operators are declared in String.hh, but they are not defined in any file, which causes many undefined symbols, see attachment

BinOStreamC &operator<<(BinOStreamC &out,const StringC &str);
//: Write a string to a binary stream.

BinOStreamC &operator<<(BinOStreamC &out,const SubStringC &str);
//: Write a substring to a binary stream.

BinIStreamC &operator>>(BinIStreamC &in,StringC &str);

Discussion

  • Nobody/Anonymous

     
  • Charles Galambos

    How are you building the code ? What compiler are you using.
    These methods are defined in Ravl/Core/Base/BinString.cc

     
  • Nobody/Anonymous

    I built it with i686-apple-darwin10-g++-4.2.1

    I found the method declaration in BinString.cc, thanks for pointing out. The reason why it throws error about undefined symbols is because qmake fails to allow RvalIO to access RavlCore classes. The solution is to ignore the error and manually archive all .o classes using "ar cr ..." into a final library.