Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Stale Wrong errors when compiling Eclipse CDT(Eclipse showing wrong errors previous errors when compiling )
Stale Wrong errors when compiling Eclipse CDT [message #828699] Sun, 25 March 2012 02:10 Go to next message
Eclipse UserFriend
Hi,

I have installed cygwin and Eclipse and trying to build my first cpp project but it is becoming a nightmare setting up and building it. The problem is,
a) Cannot recognize the libraries and function like cin and cout
b) After you comment out this line the compliers still shows the previous error

I have show a detailed screenshot of this error

Please help me solve this stale error issue

I have also done a Index -> Rebuild which did not help
Ram

[Updated on: Sun, 25 March 2012 02:21] by Moderator

Re: Stale Wrong errors when compiling Eclipse CDT [message #828896 is a reply to message #828699] Sun, 25 March 2012 09:50 Go to previous message
Eclipse UserFriend
On 03/25/2012 01:10 AM, Ram Mohan Rao wrote:
> Hi,
>
> I have installed cygwin and Eclipse and trying to build my first cpp project but it is becoming a nightmare setting up and building it. The problem is,
> a) Cannot recognize the libraries and function like cin and cout
> b) After you comment out this line the compliers still shows the previous error
>
> I have show a detailed screenshot of this error
>
> Please help me solve this stale error issue
>
> I have also done a Index -> Rebuild which did not help
>
> Ram
First, the TestProj.cpp file has not been saved. The '*' next to the
file name in the editor tab indicates this. The compiler will only work
with the saved version of the file.

Second, cout and endl are in the std namespace. You need to either add
a using namespace std line of prefix cout and endl with std::
(std::cout, std::endl).
Previous Topic:Env variables and generated makefile
Next Topic:Suppressing certain error types in Problems window
Goto Forum:
  


Current Time: Wed Jun 18 06:00:35 EDT 2025

Powered by FUDForum. Page generated in 0.27824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top