| View previous topic :: View next topic |
| Author |
Message |
The 11th plague of Egypt
Joined: 13 Jan 2010 Posts: 6
|
Posted: Tue Mar 02, 2010 5:33 pm Post subject: Unresolved includes inside iostream |
|
|
Like the title says, my #include iostream is underlined and if I hold ctrl+alt I get this:
The program work, but I don't know what this means.
I'm using Windows 7 with cygwin (latest) and NetBeans 6.8. |
|
| Back to top |
|
 |
Vladimir Voskresensky Posted via mailing list.
|
Posted: Tue Mar 02, 2010 5:54 pm Post subject: Unresolved includes inside iostream |
|
|
Can you try with clean userdir?
Thanks,
Vladimir.
The 11th plague of Egypt wrote:
| Quote: | Like the title says, my #include iostream is underlined and if I hole ctrl+alt I get this:
[Image: http://img502.imageshack.us/img502/7319/errorpz.th.png ] (http://img502.imageshack.us/i/errorpz.png/)
The program work, but I don't know what this means.
I'm using Windows 7 with cygwin (latest) and NetBeans 6.8.
|
|
|
| Back to top |
|
 |
The 11th plague of Egypt
Joined: 13 Jan 2010 Posts: 6
|
Posted: Tue Mar 02, 2010 6:00 pm Post subject: |
|
|
What do you mean? Wipe the folder or reinstall cygwin?
Or is it a specific command? |
|
| Back to top |
|
 |
Vladimir Voskresensky Posted via mailing list.
|
Posted: Tue Mar 02, 2010 10:14 pm Post subject: Unresolved includes inside iostream |
|
|
I mean, open netbeans About dialog. Have a look what is the path to your
userdir.
delete it (backup if you'd like) and start nb again.
I hope, no need to reinstall cygwin ;-)
The 11th plague of Egypt wrote:
| Quote: | What do you mean? Wipe the folder or reinstall cygwin?
|
|
|
| Back to top |
|
 |
The 11th plague of Egypt
Joined: 13 Jan 2010 Posts: 6
|
Posted: Wed Mar 03, 2010 9:53 pm Post subject: |
|
|
Strange: today it took a while to open the file, but ultimately it just worked.
Is it better not to try and clean now? |
|
| Back to top |
|
 |
Vladimir Voskresensky Posted via mailing list.
|
Posted: Thu Mar 04, 2010 11:39 am Post subject: Unresolved includes inside iostream |
|
|
Up to you
Just remember, that cleaning userdir helps quite often in Netbeans
The 11th plague of Egypt wrote:
| Quote: | Strange: today it took a while to open the file, but ultimately it just worked.
Is it better not to try and clean now?
|
|
|
| Back to top |
|
 |
hitas
Joined: 09 Mar 2010 Posts: 1
|
Posted: Tue Mar 09, 2010 10:57 am Post subject: |
|
|
Hello.
I am having almost the same issue, but... My code doesn't work at all. When I try to compile/run file, it says:
| Quote: |
CLEAN SUCCESSFUL (total time: 390ms)
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/main.o.d
g++ -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/main.o.d -o build/Debug/Cygwin-Windows/main.o main.cpp
make: *** [build/Debug/Cygwin-Windows/main.o] Error 1
BUILD FAILED (exit value 2, total time: 1s)
|
Like in first post, files, which I try to include, are underlined and said that they have unresolved includes inside. And ALL the includes doesn't work.
How can I fix it?
Code:
| Code: | #include <iostream>;
using namespace std;
/*
*
*/
int main(int argc, char** argv) {
cout << "Hello, World!" << endl;
return 0;
}
|
Sorry for my bad english. |
|
| Back to top |
|
 |
mucygni
Joined: 17 Mar 2010 Posts: 4 Location: New Jersey
|
Posted: Wed Mar 17, 2010 2:42 am Post subject: syntax error |
|
|
Hey, you shouldn't put a semi-colon after your include file.
#include <iostream>;
That's no good. Get rid of that.
And I don't think it's a problem, but for "Hello, world" you shouldn't need function arguments.
int main()
would be fine. Peace. |
|
| Back to top |
|
 |
|