NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Unresolved includes inside iostream

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
The 11th plague of Egypt



Joined: 13 Jan 2010
Posts: 6

PostPosted: Tue Mar 02, 2010 5:33 pm    Post subject: Unresolved includes inside iostream Reply with quote

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.





PostPosted: Tue Mar 02, 2010 5:54 pm    Post subject: Unresolved includes inside iostream Reply with quote

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

PostPosted: Tue Mar 02, 2010 6:00 pm    Post subject: Reply with quote

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.





PostPosted: Tue Mar 02, 2010 10:14 pm    Post subject: Unresolved includes inside iostream Reply with quote

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

PostPosted: Wed Mar 03, 2010 9:53 pm    Post subject: Reply with 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
Vladimir Voskresensky
Posted via mailing list.





PostPosted: Thu Mar 04, 2010 11:39 am    Post subject: Unresolved includes inside iostream Reply with quote

Up to you Smile
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

PostPosted: Tue Mar 09, 2010 10:57 am    Post subject: Reply with quote

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

PostPosted: Wed Mar 17, 2010 2:42 am    Post subject: syntax error Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo