473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to view g++ long error message

I am using g++ to compile a program.
g++ outputs so many warnings and errors that
I cannot see the first error message that I think I should fix first

I try to use 'g++ exer.cc | less' but it doesn't work.

I try to 'g++ exer.cc er' but it doesn' work either.

What can I do with it?
Nov 20 '07 #1
4 1683
Lambda wrote:
I am using g++ to compile a program.
g++ outputs so many warnings and errors that
I cannot see the first error message that I think I should fix first

I try to use 'g++ exer.cc | less' but it doesn't work.

I try to 'g++ exer.cc er' but it doesn' work either.

What can I do with it?
news:gnu.g++.help or any manual for your shell to see what syntax
you need for redirecting the standard ERROR output (like "2er"
or something).

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Nov 20 '07 #2
Lambda schrieb:
I try to use 'g++ exer.cc | less' but it doesn't work.

I try to 'g++ exer.cc er' but it doesn' work either.
When using bash, try

g++ exer.cc 2>&1 | less

or

g++ exec.cc >er 2>&1

when you want the errors to end up in file "er".

Greetings,
Johannes

--
"Viele der Theorien der Mathematiker sind falsch und klar
Gotteslästerlich. Ich vermute, dass diese falschen Theorien genau
deshalb so geliebt werden." -- Prophet und Visionär Hans Joss aka
HJP in de.sci.mathematik <47**********************@news.sunrise.ch>
Nov 20 '07 #3
Lambda <st*********@gmail.comwrote:
: I am using g++ to compile a program.
: g++ outputs so many warnings and errors that
: I cannot see the first error message that I think I should fix first

: I try to use 'g++ exer.cc | less' but it doesn't work.

Try 'g++ exer.cc | & less' OR
'g++ exer.cc | cat & er'

--thelma

Nov 20 '07 #4
On Nov 20, 9:22 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Lambda wrote:
I am using g++ to compile a program.
g++ outputs so many warnings and errors that
I cannot see the first error message that I think I should fix first
I try to use 'g++ exer.cc | less' but it doesn't work.
I try to 'g++ exer.cc er' but it doesn' work either.
What can I do with it?

news:gnu.g++.help or any manual for your shell to see what syntax
you need for redirecting the standard ERROR output (like "2er"
or something).

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
I used
g++ exer.cc 2er
and the message went to the file 'er'
Thanks
Nov 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jerry | last post by:
I recently upgraded my PC from Windows XP Home to XP Professional, so that I can use XP Pro's build in IIS functionality to build ASP pages off of my home PC. I have installed IIS 5.1, configured...
12
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
1
by: Endif | last post by:
Hello, I am on creating a new Logical file (View) using the ISeries Windows Navigator for DB2/400 V8. It is based on SQL Query. when the physical files in SQL Query are updated, the View fails and...
2
by: Stephen Layton | last post by:
Manipulating comdlg32.dll using Ken Getz code below: ahtCommonFileOpenSave InitialDir:="F:\DiocesanDatabase\" & strNoSlashHouseNumber, _ Filter:=strFilter, FilterIndex:=1, Flags:=lngFlags, _...
1
by: Jerry Tovar | last post by:
I am using .Net 2003 on a XPPro running IIS. I am unable to view any of my ASPX webforms in a browser unless I modify the .ASPX file and replace Codebehind="employee.aspx.cs" with...
12
by: Raed Sawalha | last post by:
I have the following table which i can not switcha to design view error message said Could not open in Design view. Quote values differently inside a '<% ...."value"... %>' block. and the...
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
7
by: zwasdl | last post by:
When I swtich to design view from data view, the query results are lost, and I have to run again to get it. Is there an option in access to keep the data when I switching views? I know I can copy...
6
by: Neil | last post by:
I had a strange situation with a view in SQL 7, that I could use some input on. I had a very simple view -- select a, b, c from table1 where x=y and z=q. Field a in table1 originally was varchar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.