Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 840897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:42:11+00:00 2026-05-15T05:42:11+00:00

My IDE (NetBeans) thinks this is wrong code, but it compiles correctly: std::cout <<

  • 0

My IDE (NetBeans) thinks this is wrong code, but it compiles correctly:

std::cout << "i = " << i << std::endl;
std::cout << add(5, 7) << std::endl;
std::string test = "Boe";
std::cout << test << std::endl;

It always says unable to resolve identifier .... (.... = cout, endl, string);

So I think it has something to do with the code assistance. I think I have to change/add/remove some folders. Currently, I have these include folders:

C compiler:

/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.4.3/include
/usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
/usr/include

C++ compiler:

/usr/include/c++/4.4.3
/usr/include/c++/4.4.3/i486-linux-gnu
/usr/include/c++/4.4.3/backward
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.4.3/include
/usr/include

What could be causing this, and how can I make NetBeans mark it as valid code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:42:12+00:00Added an answer on May 15, 2026 at 5:42 am

    It works fine for me. I’m using NetBeans 6.8; the only undefined reference I got was for the add() function.

    Can you test with a new project to see if you can reproduce the problem?

    EDIT (reply):

    Yep, tested on Linux. No includes added in project properties.

    In the global C/C++ options I have an extra include path for C, /usr/include/i486-linux-gnu.
    For C++ I have:

    /usr/include/c++/4.4
    /usr/include/c++/4.4/i486-linux-gnu
    /usr/include/c++/4.4/backward
    /usr/local/include
    /usr/lib/gcc/i486-linux-gnu/4.4.3/include
    /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
    /usr/include/i486-linux-gnu
    /usr/include
    

    These are my defaults, haven’t touched them. HTH
    I also use gcc-4.4.3 (Ubuntu 10.04).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a stupid question but is it possible for NetBeans IDE to
I use Netbeans IDE. My hibernate.cfg.xml looks like this: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE hibernate-configuration
I am using Netbeans IDE for a java project. In this project i need
I want to add a right click popupmenu to a JTable in NetBeans IDE
I've built a Java application which executes correctly from my IDE (Netbeans). I have
Is there any way to write Shoes application using IDE (NetBeans for example)? I
I am using Netbeans IDE. I want to give the prompt text to JTextfield
I am using Netbeans IDE (J2ME) for developing a mobile application, a dictionary which
Working with IDE like NetBeans or IDEA, i've seen that they are converting generic
As you know the NetBeans IDE will pop you inline documentation in your PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.