Quote:
Originally Posted by HarryBoy
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