Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Trying to use CDT first time, Hello World doesn't run
Trying to use CDT first time, Hello World doesn't run [message #704719] Fri, 29 July 2011 02:00 Go to next message
eclipse is currently offline eclipseFriend
Messages: 2
Registered: July 2011
Junior Member
Newly installed Eclipse Java EE IDE, Indigo Release, on OS X 10.7, with latest CDT.

Here's what I've tried:

Start Eclipse with a new empty workspace.
Close the welcome thing.
Choose New, Project... from the File menu.
Click C/C++, click C Project, click Next.
Enter "hello" for project name, click "Hello World ANSI C Project", click Next.
Click Next, and Finish.
Click Yes to answer question about C/C++ perspective.
Click the Hammer icon. Zero problems.
Click the Launch icon (right-pointing triangle).
"The selection cannot be launched, and there are no recent launches."
Right-click "hello" project icon, choose Run As, Run Configurations...
Now I'm completely lost. I see "Apache Tomcat", "Eclipse Application", "Eclipse Data Tools", etc.; none of them seem appropriate for a simple C application.
Click on the Help icon (a question mark) in the "Create, manage, and run configurations" screen. Nothing happens.

What am I doing wrong, or failing to do? Thanks in advance for any clues.

Best wishes,

Tom
Re: Trying to use CDT first time, Hello World doesn't run [message #704996 is a reply to message #704719] Fri, 29 July 2011 09:57 Go to previous messageGo to next message
John McCabe is currently offline John McCabeFriend
Messages: 228
Registered: July 2009
Senior Member
On Thu, 28 Jul 2011 22:00:04 -0400, eclipse
<forums-noreply@eclipse.org> wrote:

>Newly installed Eclipse Java EE IDE, Indigo Release, on OS X 10.7, with latest CDT.
>
>Here's what I've tried:
>
>Start Eclipse with a new empty workspace.
>Close the welcome thing.
>Choose New, Project... from the File menu.
>Click C/C++, click C Project, click Next.
>Enter "hello" for project name, click "Hello World ANSI C Project", click Next.
>Click Next, and Finish.
>Click Yes to answer question about C/C++ perspective.
>Click the Hammer icon. Zero problems.
>Click the Launch icon (right-pointing triangle).
>"The selection cannot be launched, and there are no recent launches."
>Right-click "hello" project icon, choose Run As, Run Configurations...
>Now I'm completely lost. I see "Apache Tomcat", "Eclipse Application", "Eclipse Data Tools", etc.; none of them seem appropriate for a simple C application.
>Click on the Help icon (a question mark) in the "Create, manage, and run configurations" screen. Nothing happens.
>
>What am I doing wrong, or failing to do? Thanks in advance for any clues.

What toolchain have you got installed? (It should be in the
"Toolchains:" box in the C Project wizard).

When you right click on the project and select "Run As" is there no
"Local C/C++ Application" option?

In the "Run Configurations" dialog there should be a "C/C++
Application" option.

John
Re: Trying to use CDT first time, Hello World doesn't run [message #705306 is a reply to message #704719] Fri, 29 July 2011 17:31 Go to previous messageGo to next message
eclipse is currently offline eclipseFriend
Messages: 2
Registered: July 2011
Junior Member
>What toolchain have you got installed? (It should be in the "Toolchains:" box in the C Project wizard).

MacOSX GCC (the only option shown).

>When you right click on the project and select "Run As" is there no "Local C/C++ Application" option?

No, the only command in the popup menu is "Run Configurations...".

>In the "Run Configurations" dialog there should be a "C/C++ Application" option.

That's also missing. Now I see my mistake. I installed everything with "CDT" in its name:

Autotools support for CDT (Incubation) 3.0.0.201106060936
CDT Visual C++ Support 1.0.0.201106081058

But I hadn't installed these (filtered out by filtering on "cdt"):

C/C++ Development Tools 8.0.0.201106081058 org.eclipse.cdt.feature.group Eclipse CDT
C/C++ Development Tools SDK 8.0.0.201106081058 org.eclipse.cdt.sdk.feature.group Eclipse CDT

Now it seems to work fine. Thanks for your help!

Tom
Re: Trying to use CDT first time, Hello World doesn't run [message #715745 is a reply to message #705306] Mon, 15 August 2011 11:15 Go to previous message
John McCabe is currently offline John McCabeFriend
Messages: 228
Registered: July 2009
Senior Member
On Fri, 29 Jul 2011 13:31:59 -0400, eclipse
<forums-noreply@eclipse.org> wrote:

>>What toolchain have you got installed? (It should be in the "Toolchains:" box in the C Project wizard).
>
>MacOSX GCC (the only option shown).
>
>>When you right click on the project and select "Run As" is there no "Local C/C++ Application" option?
>
>No, the only command in the popup menu is "Run Configurations...".
>
>>In the "Run Configurations" dialog there should be a "C/C++ Application" option.
>
>That's also missing. Now I see my mistake. I installed everything with "CDT" in its name:
>
> Autotools support for CDT (Incubation) 3.0.0.201106060936
> CDT Visual C++ Support 1.0.0.201106081058
>
>But I hadn't installed these (filtered out by filtering on "cdt"):
>
> C/C++ Development Tools 8.0.0.201106081058 org.eclipse.cdt.feature.group Eclipse CDT
> C/C++ Development Tools SDK 8.0.0.201106081058 org.eclipse.cdt.sdk.feature.group Eclipse CDT
>
>Now it seems to work fine. Thanks for your help!

That would make a difference :-) Glad to be of some assistance!
Previous Topic:Eclipse C/C++ Remote Debugging
Next Topic:Help make CDT running
Goto Forum:
  


Current Time: Fri Apr 26 21:54:48 GMT 2024

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

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

Back to the top