Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] C++ compile probblem



Brett Robson writes:

 > IndexFile.cc: In constructor 'IndexFile::IndexFile(std::fstream&, int, 
 > int)':
 > IndexFile.cc:30: error: 'struct std::basic_filebuf<char, 
 > std::char_traits<char> >' has no member named 'fd'
 > IndexFile.cc:51: error: no matching function for call to 
 > 'std::basic_fstream<char, std::char_traits<char> >::read(size_t*&, long un
 > /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/istream:456: 

Looks to me like you have a program that uses internal details of the
C++ standard library implementation:

 > fstat(idxfile.rdbuf()->fd(), &fstatus);

My first guess is that you need to match up the program to the C++
compiler (vendor, probably GCC, *and* version) so that you get the
library API that your program is expecting.

This is why everybody loves C++ ... not.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links