LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2012, 06:30 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
limit g++ output to console window


I am using g++ and there are lots of undefined references like so:

Quote:
soapC.cpp.text+0x7025): undefined reference to `soap_id_enter'
soapC.cpp.text+0x717d): undefined reference to
/tmp/cc7MoPDN.o: In function `calcProxy::soap_close_socket()':
soapcalcProxy.cpp.text+0xa9): undefined reference to `soap_closesock'
soapcalcProxy.cpp.text+0x13f): undefined reference to `soap_begin'
soapcalcProxy.cpp.text+0x15e): undefined reference to `soap_begin_count'
soapcalcProxy.cpp.text+0x194): undefined reference to `soap_envelope_begin_out'
How can I get the screen output to stop or only output on a page by page basis so I can see the very first error?? (I cannot scroll up to the top to see the first error)
e.g as if I was using more or less

Thanks
 
Old 08-21-2012, 09:42 AM   #2
gregAstley
LQ Newbie
 
Registered: Aug 2012
Distribution: ubuntu 11.10
Posts: 27

Rep: Reputation: 4
Quote:
Originally Posted by HarryBoy View Post
I am using g++ and there are lots of undefined references like so:



How can I get the screen output to stop or only output on a page by page basis so I can see the very first error?? (I cannot scroll up to the top to see the first error)
e.g as if I was using more or less

Thanks
you can redirect the errors to a text file; i.e. whatever command you are typing to compile, append 2> somefile to it. For example suppose I had a cpp file called test.cpp, and made a textfile called error, and I wanted an executable called test then I might compile as follows:

g++ test.cpp -o test 2> error


If everything was ok, error will be empty otherwise it will contain all the errors

Last edited by gregAstley; 08-21-2012 at 10:08 AM.
 
Old 08-21-2012, 10:54 AM   #3
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
excellent thanks
 
  


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
Limit rsync log output glennbtn Linux - Server 1 07-23-2010 04:44 AM
[SOLVED] Is there any way to get conky to only output to console (no X window)? Allamgir Slackware 5 12-24-2009 12:19 PM
Difference between a Shell terminal window and the KDE Linux Console terminal window? bostonantifan Fedora 2 03-25-2007 07:23 PM
How to limit/control console output? jaristr Linux - Newbie 5 08-28-2005 03:10 PM
Limit console results paintcheck200 Linux - Newbie 3 10-11-2004 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 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