CDT-Helios error reporting [message #729722] |
Mon, 26 September 2011 16:45  |
Eclipse User |
|
|
|
hi,
I changed from CDT-Galileo to CDT-Helios and now I get a lot of errors in a project where CDT-Galileo only reported warnings, e.g. unused variables now are errors.
How can I set the compiler to the same sensitivity as in Galileo?
Niko
|
|
|
|
Re: CDT-Helios error reporting [message #730199 is a reply to message #729858] |
Tue, 27 September 2011 17:02   |
Eclipse User |
|
|
|
The errors are reported as errors in the Problems view.
The overview in the title line of the Problems view tells me:
26 errors, 0 warnings, 0 other
I can run the program, but everytime I am asked if I really want to continue because there are errors.
Well, I can ignore the warning and continue. And the program runs.
But I have curious effects like the following:
The fprintf() statement cannot read floating point values correctly.
An ASCII file containing the line
shall be read by the statements
status = fscanf(stream, "%lf", &sigma_state);
errorcode = read_comment ( stream, comment );
The function read_comment() reads the rest of the line.
The result of reading the line is:
sigma_state=10
comment=.0 # some comment
fscanf() does not recognize 10.0 as a floating point number. It stops reading at the decimal point.
I really cannot understand why such a simple task is going wrong. On my old PC with openSuse 10.3 (not in a virtual machine) and Eclipse Galileo, fscanf() can read the line correctly.
But what else can be the reason?
Has openSuse or Eclipse problems with running in a virtual machine?
My configuration:
Win7 with VM Virtual Box
openSuse 11.3 running in the Virtual Box
Eclipse Helios with Qt-Integration, running on openSuse
Qt 4.7
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07664 seconds