LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 10-17-2005, 10:54 PM   #1
tim1235
Member
 
Registered: Aug 2004
Location: Melbourne, Australia
Distribution: fc5/Gentoo
Posts: 57

Rep: Reputation: 15
Compiling problem on AIX


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
 
Old 10-18-2005, 04:21 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"double ** a = new (double*)[rows];"

Try putting a blank between ) and [

--------------------------
Steve Stites
 
Old 11-03-2005, 04:14 PM   #3
Back_to_Linux
Member
 
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
search in the header file, the definition of the type row.
may be you must install gcc and g++ packages, they are available for aix 5L at the ibm's aix tools box site.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla Firefox Installation problem on AIX 5.2 rylaix AIX 8 09-24-2005 12:34 PM
AIX login problem after first installation vinay88819 AIX 2 05-10-2005 03:12 PM
AIX on P series power problem agallant AIX 2 09-25-2004 04:02 PM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM
AIX 2 Linux transfer problem jmf4vp AIX 1 03-09-2004 03:09 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration