|
|
|
|
|
|
|
|
Re: HelloWorld not running [message #1692248 is a reply to message #1616883] |
Tue, 14 April 2015 14:01 |
Joseph Gagnon Messages: 68 Registered: June 2013 |
Member |
|
|
I'm having the same problem, but with a different set of symptoms. I'm using eclipse Kepler on Windows 7 (64-bit), and MinGW (also 64-bit). I tried following the simple HelloWorld tutorial on the eclipse help page, but the problem I'm having is that for some reason it can't find the most basic things.
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!!!" << endl; // prints Hello World!!!
return 0;
}
The Problems view:
Description Resource Path Location Type
Symbol 'std' could not be resolved Test.cpp /Test/src line 10 Semantic Error
Symbol 'cout' could not be resolved Test.cpp /Test/src line 13 Semantic Error
Symbol 'endl' could not be resolved Test.cpp /Test/src line 13 Semantic Error
There has to be some simple basic piece of configuration I'm missing. I just don't know what it is.
I'm pretty familiar with eclipse, but for Java development. This is the first time trying to do C/C++ development with it.
I assume I haven't set a variable somewhere (in eclipse or outside) or something similar. Can anyone help?
[Updated on: Tue, 14 April 2015 14:10] Report message to a moderator
|
|
|
|
Re: HelloWorld not running [message #1698629 is a reply to message #1616883] |
Tue, 16 June 2015 18:49 |
Jeff Learman Messages: 1 Registered: June 2015 |
Junior Member |
|
|
I'm having the same problem, using cygwin dev tools, on 64 bit Win8.
I have cygwin/bin in my PATH; otherwise the test program wouldn't have built. Also, I can run the .exe file from a Win cmd shell, and it runs without errors. Something's not set up right in how eclipse runs the application normally versus how it runs it for debugging. The configuration under "Run configurations ..." looks reasonable (running Debug/test.exe, no special setup.)
Is there anyway to see logging? The build logs disappear from console when build is successful. Perhaps there is output to stderr before the popup window appears; if so, where would that appear? (The console is blank.)
[Edit: My bad. Evidently I hadn't restarted Eclipse after adjusting PATH, or something. Restarting Eclipse solved my issue. Sorry for the noise.]
[Updated on: Wed, 17 June 2015 15:41] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03438 seconds