Mailing List Archive


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

Re: [tlug] C++ compile probblem



Stephen J. Turnbull wrote:
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.

Yes further investigation shows that even if I fix this problem I'm going to get more errors.


I've given up.

Brett


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links