I have some code that compiles fine under linux (2.4.21-15.ELsmp xeon proccessor) but I am now trying to compile this under AIX 5.2 (power4 proccessor) but get the following error:
$ xlC -q64 -I/usr/local/packages/gsl-1.7/ -c -g matrix.cc
"matrix.cc", line 550.30: 1540-0063 (S) The text "[" is unexpected.
The line in question is:
Code:
double ** a = new (double*)[rows];
Any help with this error message would be appreciated. I have also added the operating system level and xlC patch level below:
Thanks,
T
$oslevel
5.2.0.0
$ lslpp -l xlC*
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
xlC.adt.include 6.0.0.1 APPLIED C Set ++ Application
Development Toolkit
xlC.aix50.rte 7.0.0.6 APPLIED C Set ++ Runtime for AIX 5.0
xlC.cpp 5.0.2.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 5.0.2.0 COMMITTED C for AIX Preprocessor
Messages--U.S. English
xlC.rte 7.0.0.1 APPLIED C Set ++ Runtime
$ lslpp -l vacpp*
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
vacpp.cmp.aix50.lib 6.0.0.12 APPLIED VisualAge C++ Libraries for
AIX 5.0
vacpp.cmp.aix50.tools 6.0.0.1 APPLIED VisualAge C++ Tools for AIX
5.0
vacpp.cmp.core 6.0.0.14 APPLIED VisualAge C++ Compiler
vacpp.cmp.include 6.0.0.12 APPLIED VisualAge C++ Compiler Include
Files
vacpp.cmp.lib 6.0.0.0 COMMITTED VisualAge C++ Libraries
vacpp.cmp.rte 6.0.0.0 COMMITTED VisualAge C++ Compiler
Application Runtime
vacpp.cmp.tools 6.0.0.12 APPLIED VisualAge C++ Tools
vacpp.lic 6.0.0.0 COMMITTED VisualAge C++ Licence Files
vacpp.memdbg.aix50.lib 6.0.0.9 APPLIED VA C++ User Heap/Memory Debug
AIX 5.0 Libraries
vacpp.memdbg.aix50.rte 6.0.0.12 APPLIED VA C++ User Heap/Memory Debug
AIX 5.0 Runtime
vacpp.memdbg.lib 6.0.0.0 COMMITTED VisualAge C++ User Heap and
Memory Debug Static Libraries
vacpp.memdbg.rte 6.0.0.0 COMMITTED VisualAge C++ User Heap and
Memory Debug Runtime
Path: /etc/objrepos
vacpp.cmp.core 6.0.0.0 COMMITTED VisualAge C++ Compiler