BFont++ problems
i'm having troubles with the BFont++ library i just recently downloaded.
i keep getting complaints about this line in the BFont.h file:
In file included from main.cpp:33:
BFont++/BFont.h:28: ISO C++ forbids declaration of `ostream' with no type
BFont++/BFont.h:28: `ostream' is neither function nor member function; cannot
be declared friend
BFont++/BFont.h:28: parse error before `&' token
and the line in question looks like this:
friend ostream& operator<<(ostream&, const BFont&);
and the function it points to is thus:
ostream& operator<<(ostream& os, const BFont& s)
{
os << "Font informations: " << endl
<< "size: " << s.h << '\t'
<< "name: " << s.name << endl;
return os;
}
the test program compiles fine when i type make in the BFont dir, but it doesn't want to work for my program. any hints?
thanks,
rebelcan
|