LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2010, 08:24 AM   #1
miamagoo
Member
 
Registered: Jun 2010
Posts: 32

Rep: Reputation: 15
Qt Creater 4, C++ & stderr


Can I use qDebug() to print out stderr messages? If I just use qDebug() << stderr; I get hex output.
 
Old 07-27-2010, 02:01 PM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Quote:
Originally Posted by miamagoo View Post
If I just use qDebug() << stderr; I get hex output.
Not sure what you THINK this should do, but the "hex output" is the value of "stderr": It is a pointer to a ISO C file stream (type *FILE) and there is no output stream overload for operator<<(*FILE), so it will print out the address stderr is pointing to.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
stderr and piping (not as simple as 2>&1 - so what do I do?) exscape Programming 9 09-11-2009 03:08 AM
how to change stdin, stdout & stderr in u-boot to ethernet from serial jynthms Linux - Newbie 1 04-01-2009 09:34 AM
Perl stderr&stdout redirect question Fredde87 Programming 5 03-26-2009 04:43 AM
shell script: how to send stdout one place & stderr another? BrianK Programming 8 09-21-2007 06:57 AM
Shell script - stdout & stderr to terminal and file jantman Linux - Software 1 12-07-2006 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration