“Ostream” object is not printing message on HP-UNIX for debug mode


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users “Ostream” object is not printing message on HP-UNIX for debug mode
# 1  
Old 09-13-2004
“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,
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Logging perl and shell debug mode.

I have a shell program which calls a perl program. I am running the shell program with command; $ ksh -x <prog_name> Inside the shell program, I am calling perl with warnings. I want to capture the entire output as it comes on screen. The command I tried is: $ ksh -x... (1 Reply)
Discussion started by: som.nitk
1 Replies

2. Programming

Is there any possibility of running the PHP script in a debug mode ?

Is there any possibility of running the PHP script in a debug mode ? If so, do i have to download any package? Any free downloads available? Can anyone please guide me through? Am a newbie in PHP scripting. Thanks in Advance! (1 Reply)
Discussion started by: vidhyaS
1 Replies

3. Programming

Compile a proc/c++ file in debug mode.

Hi, I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created. I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe... (2 Replies)
Discussion started by: ehari
2 Replies

4. Red Hat

ehternet in debug mode

I have a little dell running redhat server. it's getting ethernet traffic to console and /var/log/messages (up 60Mb) i can't seem to find where to turn it off! any help would be greatly appreciated. here's syslog: here's a snip from the log: Sep 28 21:34:08 zgarch_serv kernel: IN=eth0... (2 Replies)
Discussion started by: toferloafer
2 Replies

5. AIX

Running Installp in debug mode

Is there a way I can execute an installp command in debug mode, so that I can see whats happening when a fileset is being installed or updated? (What files are being replace etc etc). I have an installp command failing for unknown reason. (7 Replies)
Discussion started by: balaji_prk
7 Replies

6. Shell Programming and Scripting

Debug mode

When I run a lengthy script in debug mode i need to capture all the steps which are executed. e.g ksh -x script.ksh + test -f /proc/mounts + /bin/ls -l /proc/21326/exe + is=ksh + test ksh = ksh + test -s /etc/ksh.kshrc + . /etc/ksh.kshrc + trap 1 2 3 + who am i + awk {print $1} +... (2 Replies)
Discussion started by: zooby
2 Replies

7. Programming

Sun Studio C++ - Getting error in linking std::ostream &std::ostream::operator<<(std:

Hello all Im using CC: Sun C++ 5.6 2004/07/15 and using the -library=stlport4 when linkning im getting The fallowing error : Undefined first referenced symbol in file std::ostream &std::ostream::operator<<(std::ios_base&(*)(std::ios_base&))... (0 Replies)
Discussion started by: umen
0 Replies

8. Shell Programming and Scripting

run in debug mode

Hi, I have a question on my korn shell script. When I run without debugging turned on, I can't get the correct result. If I turn on the debug mode, like sh -x myprogram, it will give me the correct result. Can someone tell me what is going on here? Thanks, :rolleyes: (6 Replies)
Discussion started by: whatisthis
6 Replies
Login or Register to Ask a Question
CALIBRE-DEBUG(1)						      calibre							  CALIBRE-DEBUG(1)

NAME
calibre-debug - part of calibre SYNOPSIS
calibre-debug [options] DESCRIPTION
Run an embedded python interpreter. Whenever you pass arguments to calibre-debug that have spaces in them, enclose the arguments in quotation marks. OPTIONS
--version show program's version number and exit -h, --help show this help message and exit -c, --command Run python code. -e, --exec-file Run the python code in file. -d, --debug-device-driver Debug the specified device driver. -g, --gui Run the GUI with debugging enabled. Debug output is printed to stdout and stderr. --gui-debug Run the GUI with a debug console, logging to the specified path. For internal use only, use the -g option to run the GUI in debug mode --show-gui-debug Display the specified log file. For internal use only. -w, --viewer Run the ebook viewer --paths Output the paths necessary to setup the calibre environment --migrate Migrate old database. Needs two arguments. Path to library1.db and path to new library folder. --add-simple-plugin Add a simple plugin (i.e. a plugin that consists of only a .py file), by specifying the path to the py file containing the plugin code. --reinitialize-db Re-initialize the sqlite calibre database at the specified path. Useful to recover from db corruption. You can also specify the path to an SQL dump which will be used instead of trying to dump the database. This can be useful when dumping fails, but dumping with sqlite3 works. -p, --py-console Run python console -m, --inspect-mobi Inspect the MOBI file(s) at the specified path(s) --tweak-book Tweak the book (exports the book as a collection of HTML files and metadata, which you can edit using standard HTML editing tools, and then rebuilds the file from the edited HTML. Makes no additional changes to the HTML, unlike a full calibre conversion). --test-build Test binary modules in build SEE ALSO
The User Manual is available at http://manual.calibre-ebook.com Created by Kovid Goyal <kovid@kovidgoyal.net> calibre-debug (calibre 0.8.51) January 2013 CALIBRE-DEBUG(1)