The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Major OS errors/Bash errors help!!!! wcmmlynn UNIX for Dummies Questions & Answers 12 11-13-2007 01:50 AM
ACC Compiler slash_blog HP-UX 2 05-15-2007 06:46 AM
Adapter Errors and Link Errors mcastill66 AIX 2 08-02-2005 03:51 PM
Adapter Errors and Link Errors mcastill66 UNIX for Advanced & Expert Users 0 08-02-2005 03:11 PM
gcc Compiler Switches: giving Illogical Errors Ahsan High Level Programming 1 08-25-2003 07:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2006
Registered User
 

Join Date: Mar 2005
Posts: 13
C/C++ compiler ver 6 on AIX 5.3 - errors

Hi Guys,
We are migrating AIX 5.1 to AIX 5.3. With this upgrade the C/C++ compiler is also upgraded to Visual Age C++ 6.0.
After upgrading, when we tried to (re)compile our programs (since ibm open library classes are not going to work with new compiler), we are getting so many errors with no clue how to solve. We are using the same make files which were working perfectly on AIX 5.1. The following errors are common for all programs.

"/usr/vacpp/inclue/iostream.h",line 114.38: 1540-0063 (S) the text "*" is unexpected.
"/usr/vacpp/include/iostream.h",line 300.25: 1540-0040 (S) the text "seekoff" is unexpected. "streampos" may be undeclared or ambiguous.
"/usr/vacpp/include/iostream.h",line 443.32: 1540-0600 (S) The reference to "ios" is ambiguous.
"/usr/vacpp/include/iostream.h",line 78.7: 1540-0425 (I) "ios" is defined on line 78 of "/usr/vacpp/include/iostream.h".
"/usr/vacpp/include/iosfwd", line 78.7: 1540-0425 (I) "std::ios" is defined on line 330 "/usr/vacpp/include/iosfwd".
"/usr/vacpp/include/iostream.h",line 692.32: 1540-0600 (S) The reference to "ios" is ambiguous.


This list goes on....
Can any one please have a look and let me know how can we solve this problem.

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 03-09-2006
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
What compiler options on the CLI are you using?
Reply With Quote
  #3  
Old 03-31-2006
Registered User
 

Join Date: Mar 2006
Posts: 1
You can't use old-style include name like iostream.h, istring.h.
You must implements like this

#include <iostream>
#include <string>

and use corrects namespaces

using namespace std: // to use cout<<"text" << endl;

or use std::cout << "endl" << std::end;
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0