Programming and C/C++Administrator on 23 Oct 2008 11:05 am
[C\C++]error: a class-key must be used when declaring a friend
VS2005 doesn’t have problem. g++ has problem:
you must add a ‘class‘ when you declaring a friend.
========================================================
……
class B_Machine {
friend class A_Machine;
……
========================================================