I'm compiling a set of .C files and trying to create object files on AIX 6.0 using xlC compiler version 9.0. It's generating the following errors:
1540-1172 (S) More than one function "operator new" has non-C++ linkage.
1540-0424 (I) "operator new" is declared on line 92 of "/usr/vacpp/include/new".
1540-0121 (S) A template cannot have "C" linkage.
1540-0140 (S) The text "<" is unexpected. "List" may be undeclared, ambiguous, or may require "typename" qualification.
Any kind of guidance or help would be appreciated.
$ xlC -qversion
C for AIX version 6.0.0.0
The compiler xlC is a C++ compiler only. I've verified there is no extern 'C' around #include . Please let me know the solution if anyone has worked on this.