03-22-2011
attach is not a member of ofstream
Hi,
Code written in C++ got compiled successfully using Sun 4.2 Compiler on Solaris 6. As part of migration, i am using same code and trying to compile using Sun 5.8 C++ compiler(Sun Studio11) on Solaris 10 and could not compile the below line,
outStr.attach(1); // here outStr is declared as "static ofstream outStr;"
Error displayed is :
"
Error: attach is not a member of std:
fstream
"
Please suggest how to use attach with Sun 5.8 compiler.
Thanks,
Shafi
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello All,
I am maintaining a server and I use pine as MUA and sendmail as MTA. Suddenly many users in the network face the problem of not being able to attach files using pine. I checked the sendmail.cf file and found a variable "MaxMessageSize = 1000000". Eventhough the message size... (2 Replies)
Discussion started by: maybemedic
2 Replies
2. AIX
Can someone email me a copy of this file? Our AIX 5 cds are at our hotsite and I need a copy to try a fix on a printer.
flyingdutchman1978@gmail.com
Thanks! (0 Replies)
Discussion started by: schism25
0 Replies
3. Shell Programming and Scripting
if test.dat is the file
cat test.dat|uuencode test.dat|mailx -s "subject" mailid
can be used for attaching test.dat
how can i attach more than one file to a mail using mailx (2 Replies)
Discussion started by: anumkoshy
2 Replies
4. UNIX for Dummies Questions & Answers
Anyone can help me, in Unix, how can I attach a file in the email?
Thank (3 Replies)
Discussion started by: ting123
3 Replies
5. Shell Programming and Scripting
hi
I know this topic has been discussed a lot in the forum but still couldnt get a exact solution to problem i am facing
I have a CSV file genertaed on Unix box and want to be sent to my email .
mailx -s "TEST" "xyz@hotmail.com" < 1.csv
cat 1.csv | mailx -s "TEST" "xyz@hotmail.com"
... (10 Replies)
Discussion started by: ultimatix
10 Replies
6. Programming
Hi
We have a huge codebase in HP-UX and we are porting them in RH-Linux. I am facing the problem of making the following code work in gcc -
ofstream ofs;
int fd = open(fileName, openState, openMode));
func(fd);
......
......
const Boolean func(const int fileDescriptor)
{
... (2 Replies)
Discussion started by: nsinha
2 Replies
7. Solaris
Hi All,
Can any-one explain me how update on attach works on solaris zones.
Here is the situation .
I am trying to migrate a zones xx-xxx-xxx from Global zone A to Global zone B.
Here is the error message zoneadm is displaying
zoneadm: zone 'xx-xx-xxx': ERROR: attempt to downgrade... (0 Replies)
Discussion started by: rama krishna
0 Replies
8. Emergency UNIX and Linux Support
Hi guys.
I'm studding XEN virtualization with 'The Book Of XEN'. in page 46 it has a statement about how to use xm block-attach command that I don't understand.
here is the command:
xm block-attach 0 tap:aio:/opt/xen/anthony.img /dev/xvda1 w 0and here is sentence:
we are attaching anthony.img... (1 Reply)
Discussion started by: majid.merkava
1 Replies
9. Solaris
Hi All,
I am having trouble with my metadevices and I hope someone can help.
when i try to attach my submirror i get the following error:
root@xxxx>metattach d31 d21
metattach: tbair1: d21: submirror too small to attach
root@xxxx>
However, There is a submirror on the other disk which is... (3 Replies)
Discussion started by: A-Train
3 Replies
10. Programming
Recently, I updated the unit I am running applications on with a new CODEC and amplifier; the older parts are EOL. There was a bug with the old setup. For some reason, even when a tone was not being generated, you could hear a noise emanating from the speaker when the LCD brightness was on a higher... (2 Replies)
Discussion started by: Circuits
2 Replies
LEARN ABOUT OPENSOLARIS
scversions
scversions(1M) System Administration Commands scversions(1M)
NAME
scversions - Sun Cluster version management
SYNOPSIS
scversions [-c]
DESCRIPTION
Note -
Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software
still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor-
mation about the object-oriented command set, see the Intro(1CL) man page.
The scversions command commits the cluster to a new level of functionality after a rolling-upgrade to new Sun Cluster software. With no
arguments, the scversions command prints a message indicating whether a commitment is needed.
OPERANDS
The following operands are supported:
-c Commit the set of nodes that are currently active members of the cluster to the highest possible level of functionality.
When you upgrade a node (either through upgrade to a new release of the product or by application of a patch) and boot it back
into the cluster, some of the internal protocols on that node might have to run at lower versions in order to cooperate cor-
rectly with other nodes in the cluster. When the cluster is in this state, some administrative actions might be disabled and
some new functionality introduced in the upgrade might be unavailable.
When you run this command once from any node after all nodes are upgraded, the cluster switches to the highest versions of
internal protocols possible. Assuming that all nodes have the same Sun Cluster software installed at that time, all new func-
tionality becomes available and any administrative restrictions are removed.
If a node that has not been upgraded is an active member of the cluster at the time you run the -c option to scversions, the
command has no effect because the cluster is already running at the highest possible level of functionality.
If a node has not been upgraded and is not an active member of the cluster when you run the -c option to scversions (for exam-
ple, if that node is down for maintenance), the internal protocols of the cluster are upgraded to the highest possible ver-
sions. You might have to upgrade the node that was not an active member of the cluster to enable it to rejoin the cluster.
EXIT STATUS
0 Success
non-zero Failure
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsczu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
scinstall(1M)
Sun Cluster 3.2 17 Aug 2007 scversions(1M)