L
Laax
Hi,
I am trying to compile a .cc file and get the following error.
I have translated the error message from original japanese text. So,
it may not look exactly like standard(English) error message.
Errors:
1. Warning (an old function) : specific "class" is necessary by
friend designation toward the class.
2. Found & where , is expected.
The source code on that particular line is:
extern "C" {
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
}
#include <iostream.h>
friend ostream& operator<<( ostream& os, const ACString &rhs );
CC Version:
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
Compiler Flags used:
-KPIC -compat=4 -mt -pta
What is the problem? How do I fix it?
Thanks.
Laax.
I am trying to compile a .cc file and get the following error.
I have translated the error message from original japanese text. So,
it may not look exactly like standard(English) error message.
Errors:
1. Warning (an old function) : specific "class" is necessary by
friend designation toward the class.
2. Found & where , is expected.
The source code on that particular line is:
extern "C" {
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
}
#include <iostream.h>
friend ostream& operator<<( ostream& os, const ACString &rhs );
CC Version:
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
Compiler Flags used:
-KPIC -compat=4 -mt -pta
What is the problem? How do I fix it?
Thanks.
Laax.