LoWeN wrote:
Hello,
I got the following with mipspro C/C++ 7.3.1.3
cc-1239 CC: ERROR File = dispatcher.cc, Line = 1004
"cerr" is ambiguous.
cerr << "WARNING: got corrupt MCOP message !??" << endl;
It is possible to solve this by chqmging iostream in iostream.h
Sounds mipro don't know which cerr to use whem both iostream and iostream.h are included
You should have either one or the other... Why are both included ?
If the code is using <iostream>, then you should also have -LANG:std on the compile line. If <iostream.h> is used than you don't need -LANG:std.
LoWeN wrote:
cc-1312 CC: ERROR File = /usr/include/unistd.h, Line = 525
More than one instance of overloaded function "getdomainname" has "C" linkage.
extern int getdomainname(char *, int);
A non solution is to remove that definition out of the header file... dumb but working
LoWeN
Hmm, this is a little weird... unistd.h prototypes are not setup for the functions defined there to work with C++ linker...
I could be wrong as I'm still learning about C++ intricacies, but you may want to try something like this in the code that includes unistd.h:
#ifdef _LANGUAGE_C_PLUS_PLUS
extern "C" {
#include <unistd.h>
}
#endif
Hope this helps...
Nik.