![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Compilation error on namespaces in system header debug.h | rimon | High Level Programming | 4 | 03-11-2008 04:20 PM |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 11:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 10:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello all,
I am having a problem with the following program on AIX:- // Namespace.cxx #include <iostream> using namespace std; #include <iostream.h> int main() { // cout<<"Hello world"; return 0; } On compilation:- $ xlC Namespace.cxx "/usr/vacpp/include/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 330.45: 1540-0425 (I) "std::ios" is defined on line 330 of "/usr/vacpp/include/iosfwd". Can anyone explain the reason for these strange looking errors? Please try out the different combinations of first 3 lines of the program and commenting and un-commenting the cout line in the main(). Regards, Gupta |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|