| Error in eclipse [message #548014] |
Tue, 20 July 2010 08:27  |
Eclipse User |
|
|
|
Al salamo Aleekom
And Hi
Then thank you for reading my topic......
------------------------------------------------------------ -----------------------------------------------------
- I found error in my error-log eclipse but the program works and i got
the desired output when debuging and running.
i hope to know the reason for this error.
here is the code i compile if needed:
#include <iostream>
using namespace std;
int AreaCube(int length, int width = 25, int height = 1);
int main()
{
int length = 100;
int width = 50;
int height = 2;
int area;
area = AreaCube(length, width, height); // 100 * 50 * 2
cout << "First area equals: " << area << endl;
area = AreaCube(length, width); // 100 * 50 * 1
cout << "Second time area equals: " << area << endl;
area = AreaCube(length); // 100 * 25 * 1
cout << "Third time area equals: " << area << endl;
return 0;
}
int AreaCube(int length, int width, int height)
{
return (length * width * height);
}
The Error:
eclipse.buildId=I20100608-0911
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.linuxtools.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.linuxtools.product
Error
Tue Jul 20 13:49:25 EEST 2010
Error logged from Debug Core:
java.io.IOException: read error
at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Nativ e Method)
at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(Spawne rInputStream.java:66)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:2 73)
at java.io.BufferedInputStream.read(BufferedInputStream.java:33 4)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.eclipse.debug.internal.core.OutputStreamMonitor.read(Out putStreamMonitor.java:144)
at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1 (OutputStreamMonitor.java:134)
at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(Ou tputStreamMonitor.java:207)
at java.lang.Thread.run(Thread.java:636)
|
|
|
| Re: Error in eclipse [message #548053 is a reply to message #548014] |
Tue, 20 July 2010 10:17   |
Eclipse User |
|
|
|
Did you see the "sticky" message at the top of this Newcomers forum
titled "Problems with C/C++ in Eclipse? Read this."
Eric
On 7/20/10 8:27 AM, Di wrote:
> Al salamo Aleekom
> And Hi
> Then thank you for reading my topic......
>
> ------------------------------------------------------------
> -----------------------------------------------------
> - I found error in my error-log eclipse but the program works and i got
> the desired output when debuging and running.
> i hope to know the reason for this error.
> here is the code i compile if needed:
>
> #include <iostream>
>
> using namespace std;
>
> int AreaCube(int length, int width = 25, int height = 1);
> int main()
> {
> int length = 100;
> int width = 50;
> int height = 2;
> int area;
>
> area = AreaCube(length, width, height); // 100 * 50 * 2
> cout << "First area equals: " << area << endl;
>
> area = AreaCube(length, width); // 100 * 50 * 1
> cout << "Second time area equals: " << area << endl;
>
> area = AreaCube(length); // 100 * 25 * 1
> cout << "Third time area equals: " << area << endl;
> return 0;
> }
>
> int AreaCube(int length, int width, int height)
> {
> return (length * width * height);
> }
> The Error:
>
> eclipse.buildId=I20100608-0911
> java.version=1.6.0_18
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.linuxtools.product
> Command-line arguments: -os linux -ws gtk -arch x86 -product
> org.eclipse.epp.package.linuxtools.product
>
>
> Error
> Tue Jul 20 13:49:25 EEST 2010
> Error logged from Debug Core:
>
> java.io.IOException: read error
> at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Nativ e Method)
> at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(Spawne
> rInputStream.java:66)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:2 73)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:33 4)
> at java.io.FilterInputStream.read(FilterInputStream.java:107)
> at org.eclipse.debug.internal.core.OutputStreamMonitor.read(Out
> putStreamMonitor.java:144)
> at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1
> (OutputStreamMonitor.java:134)
> at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(Ou
> tputStreamMonitor.java:207)
> at java.lang.Thread.run(Thread.java:636)
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.08958 seconds