Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hipparcos

    Bus error (core dumped) with push_back()

    Thanks. here is the current code; #include "CatPair.h" #include <iostream> using namespace std; std::ostream& wbs(std::ostream& os, const std::string& s); std::istream& rbs(std::istream& is, std::string& s); bool CatPair::operator<(const CatPair& rhs) const { return second < rhs.second...
  2. hipparcos

    Bus error (core dumped) with push_back()

    when I tried to compile with your codes, I got the following error message, do you know how to fix it ? Thanks ! -------------------- g++ -I. -c -o CatPair.o CatPair.cc CatPair.cc: In member function `void CatPair::write(std::ostream&) const': CatPair.cc:32: error: invalid conversion from...
  3. hipparcos

    Bus error (core dumped) with push_back()

    dear ArkM, Thank you very much. I am very new about "std". where should I insert your codes into my programme ? I just append your codes in my class "GatPair" without changing our codes. But this did not work. how to modify my methods "write", and "read" in the class "GatPair" ...
  4. hipparcos

    Bus error (core dumped) with push_back()

    Thank you so much for your reply. You are right, the problem is in CatPair::read(); do you know a way to fix this situation ? or provide some more information ? I am realy stuck in this problem. very appreciated !
  5. hipparcos

    Bus error (core dumped) with push_back()

    Hi, can anybody help me ? I have a code Index which gave error message "Bus error (core dumped)" in the line push_back() function was called as shown as following: Index::Index(string fname) : vector<CatPair>(0), _range(vector<CatPair::index_type>(0)) { ifstream is(fname.c_str())...

Part and Inventory Search

Back
Top