Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » settings/compile question
settings/compile question [message #163181] Sun, 05 February 2006 10:29 Go to next message
Eclipse UserFriend
Originally posted by: huubvanniekerk.gmail.com

Hi,

I'm running the latest Eclipse with CDT on Fedora Core 4. I managed to
create a C++ project, but building/compiling gives problems. I followed
the online help for settings and compiling (which is unfortunately for
Windows) and can't build or run anything so far.

Help and hints are appreciated.

Thanks,

Huub
Re: settings/compile question [message #163273 is a reply to message #163181] Mon, 06 February 2006 11:29 Go to previous messageGo to next message
Norbert Plött is currently offline Norbert PlöttFriend
Messages: 233
Registered: July 2009
Senior Member
Huub,

you should post the output from the build console so we can know more
details of your problems.

Bye,


Norbert Ploett
Re: settings/compile question [message #164085 is a reply to message #163273] Fri, 17 February 2006 17:26 Go to previous message
Eclipse UserFriend
Originally posted by: huubvanniekerk.gmail.com

Norbert Ploett wrote:
> Huub,
>
> you should post the output from the build console so we can know more
> details of your problems.
>
> Bye,
>
>
> Norbert Ploett
>
>

OK, this is the simple code:

#include <iostream>

using namespace std;

int x = 0;

int main()
{
cout << " 2 Robot" << endl; // was: 1 Robot
cout << "Geef getal: ";
cin >> x;
if (x < 5)
{
cout << "Kleiner dan 5" << endl;
}
else if (x == 5)
{
cout << "Gelijk aan 5" << endl;
}
else
{
cout << "Groter dan 5" << endl;
}
}

and this is the output I still get:

3
1 Robot
Geef getal: Kleiner dan 5


Oddly, it asks for the input before printing the text on screen.
Previous Topic:Adding recognized keywords
Next Topic:Multiple users with different compilers and setting
Goto Forum:
  


Current Time: Wed Jul 24 13:30:47 GMT 2024

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

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

Back to the top