The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can debug our UNIX shell script? psiva_arul UNIX for Advanced & Expert Users 3 4 Weeks Ago 07:31 AM
Sun Studio C++ - Getting error in linking std::ostream &std::ostream::operator<<(std: umen High Level Programming 0 02-27-2008 01:14 AM
Error message printing to Windows on port 515 pauls SUN Solaris 0 12-23-2004 05:51 AM
run in debug mode whatisthis Shell Programming and Scripting 6 10-22-2004 06:43 PM
Printing Problems in unix ... ( Bar-cdoe - Ip Printing) QuickSilver UNIX for Advanced & Expert Users 3 06-04-2002 07:48 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2004
Registered User
 

Join Date: Sep 2004
Posts: 1
Stumble this Post!
“Ostream” object is not printing message on HP-UNIX for debug mode

The following C++ code segment is not working in debug mode build on HP-UNIX machine. It is not printing "Hello World" message on the screen. While it is working fine in release mode build.

==============================================

class KLogStreamBuf : public streambuf {
public:
...........
...........
void LogOn( ostream& l, const int ts = 1 ) {
FStreamBufsList.append( new KLogStreamBufs(l.rdbuf(), ts)); }
...........
...........
}


int main(int argc, char *argv[])
{
...........
...........

KLogStreamBuf DELogBuf1;

ostream DELog1( &DELogBuf1);

DELogBuf1.LogOn( cout);

DELog1<<"Hello World";

...........
...........
}

==============================================


For debug mode build I am using following compilation options

"/opt/aCC/bin/aCC -c -g +DA2.0N -w -AA -mt -N "


I would appreciate any help regarding it.

Regards,
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:00 AM.


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

Content Relevant URLs by vBSEO 3.2.0