Problem with namespaces


 
Thread Tools Search this Thread
Operating Systems AIX Problem with namespaces
# 1  
Old 10-27-2005
Question Problem with namespaces

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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Router problem or ISP problem ?

Hi everyone, I am experiencing discontinuity of Internet service, this started 1 month ago. Everything worked very well for 1 year of intensive use, but now, I have problems reaching my gateway. The gateway is not my router but a node belonging to my ISP and I share the same public IP with... (3 Replies)
Discussion started by: remic
3 Replies

2. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

3. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

4. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

5. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

6. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

7. Solaris

problem in finding a hardware problem

Hi I am right now facing a strange hardware problem. System get booted with the following error: Fatal Error Reset CPU 0000.0000.0000.0003 AFSR 0100.0000.0000.0000 SCE AFAR 0000.07c6.0000.1000 SC Alert: Host System has Reset It happen 4 or 5 times and get the same error every time.I... (8 Replies)
Discussion started by: girish.batra
8 Replies

8. Programming

Compilation error on namespaces in system header debug.h

Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> . The errors I am getting are:... (4 Replies)
Discussion started by: rimon
4 Replies

9. Shell Programming and Scripting

problem with dd command or maybe AFS problem

Hi, folks. Sorry for bothering, but maybe someone could help me please. The problem is the following: there is some script that copies files from local file system to AFS. The copying is performed with dd command. The script copies data into some AFS volumes. The problem appeared with one... (0 Replies)
Discussion started by: Anta
0 Replies

10. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies
Login or Register to Ask a Question
namespacex(3tcl)					    Namespace utility commands						  namespacex(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
namespacex - Namespace utility commands SYNOPSIS
package require Tcl 8.5 package require namespacex ?0.1? ::namespacex hook add ?namespace? cmdprefix ::namespacex hook proc ?namespace? arguments body ::namespacex hook on ?namespace? guardcmdprefix actioncmdprefix ::namespacex hook next arg... ::namespacex info allchildren namespace ::namespacex info allvars namespace ::namespacex info vars namespace ?pattern? ::namespacex state get namespace ::namespacex state set namespace dict ::namespacex state drop namespace _________________________________________________________________ DESCRIPTION
This package provides a number of utility commands for working with namespaces. API
::namespacex hook add ?namespace? cmdprefix ::namespacex hook proc ?namespace? arguments body ::namespacex hook on ?namespace? guardcmdprefix actioncmdprefix ::namespacex hook next arg... ::namespacex info allchildren namespace This command returns a list containing the names of all child namespaces in the specified namespace and its children. The names are all fully qualified. ::namespacex info allvars namespace This command returns a list containing the names of all variables in the specified namespace and its children. The names are all relative to namespace, and not fully qualified. ::namespacex info vars namespace ?pattern? This command returns a list containing the names of all variables in the specified namespace. ::namespacex state get namespace This command returns a dictionary holding the names and values of all variables in the specified namespace and its child namespaces. Note that the names are all relative to namespace, and not fully qualified. ::namespacex state set namespace dict This command takes a dictionary holding the names and values for a set of variables and replaces the current state of the specified namespace and its child namespaces with this state. The result of the command is the empty string. ::namespacex state drop namespace This command unsets all variables in the specified namespace and its child namespaces. The result of the command is the empty string. KEYWORDS
extended namespace, info, namespace unknown, namespace utilities, state (de)serialization, unknown hooking, utilities COPYRIGHT
Copyright (c) 200? Neil Madden (http://wiki.tcl.tk/12790) Copyright (c) 200? Various (http://wiki.tcl.tk/1489) Copyright (c) 2010 Documentation, Andreas Kupries namespacex 0.1 namespacex(3tcl)