Results 1 to 6 of 6

Thread: [Eclipse + CDT]. Unable to "Run" a program.

  1. #1
    Join Date
    May 2005
    Location
    France
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    [Eclipse + CDT]. Unable to "Run" a program.

    I installed Eclipse 3.1.1 + CDT.
    And it looked ok.

    As I don't know this IDE I went thru the tutorial to build my first "hello Ricardo" program. All went well. But It is not possible to run the sample with the "Run" command from the "Run" menu. I followed the instructions and made the relevant choice in the Run dialog. But it would not Run (release or debug) .

    What is strange is that the executable is produced and runs normaly outside of the IDE .
    Also in the project view the "hello world" binary is qualified "nonele", I think this should display something like x86 or x86_64
    Also the Run configuration dialog box complains about the debugger not being supported by the architecture, but GDB is there and runs perfectly.

    Thanks to anybody that can help.

    Richard


    I run Breezy on amd64 3500+.

  2. #2
    Join Date
    Jul 2005
    Location
    The Buckeye State
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [Eclipse + CDT]. Unable to "Run" a program.

    If you are talking about running the program in the console view of Eclipse, I have had problems with it display a program correctly. Yet the program was written correctly and ran fine using the terminal. Although I never researched it, I think it's a bug in Eclipse. I just started running the programs outside the Eclipse environment.

    Bill

  3. #3
    Join Date
    Oct 2005
    Beans
    49
    Distro
    Kubuntu Breezy 5.10

    Re: [Eclipse + CDT]. Unable to "Run" a program.

    After building the project, go to Run menu > Run...
    On the left side double click on the "C/C++ Local Application", select the generated "configuration". Select the Main tab on the right side and click "Search Project". Select the binary u wan to run from the list and click OK.
    Select the Debugger tab and make sure "GDB Debugger" is selected in the drop down list bellow.
    After that click Apply then click Run.

    This is actually explained in the official tutorial...
    Happy Kubuntu User

  4. #4
    Join Date
    Jul 2005
    Location
    The Buckeye State
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [Eclipse + CDT]. Unable to "Run" a program.

    I have those settings already in place. Sometimes programs will act funky in the console view.

  5. #5
    Join Date
    May 2005
    Location
    France
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    [Solved] [Eclipse + CDT]. Unable to "Run" a program.

    Quote Originally Posted by Single
    After building the project, go to Run menu > Run...
    On the left side double click on the "C/C++ Local Application", select the generated "configuration". Select the Main tab on the right side and click "Search Project". Select the binary u wan to run from the list and click OK.
    Select the Debugger tab and make sure "GDB Debugger" is selected in the drop down list bellow.
    After that click Apply then click Run.

    This is actually explained in the official tutorial...
    That is exactly what i did. Now I noticed that clicking "Run" in the dialog box does not do anything, instead I clicked 'Run' from the tool bar and it did ran in the console view.
    Thankyou to all.

    Richard

  6. #6
    Join Date
    Nov 2009
    Beans
    4

    Question Re: [Eclipse + CDT]. Unable to "Run" a program.

    In my case too I'm just able to compile the Hello world program but unable to run it. While trying to run the binary file (in either debug or release mode) I'm prompted with " The selection cannot be launched, and there are no recent launches" .

    Eclipse build is Juno.

    Also the binary file gets appended with "x86_64/le" every time the code is build for the first time. Is this an issue of x86 vs 64 build ? or is it some compiler issue ?
    Last edited by panchtatvam; November 9th, 2012 at 03:33 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •