Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Eclipse C/C++

  • 07-11-2011 12:45PM
    #1
    Registered Users, Registered Users 2 Posts: 1,042 ✭✭✭


    Hey all,
    Probably something simple, but I've recently started to use Eclipse for C++(have to use it for university). I'm running Lion (OS X), and when I try to run, I get:
    "The selection cannot be Launched, and there are no recent Launches."

    It builds and runs Java projects fine, but not C/C++.
    This happens even with a simple Hello world. I've tried an empty project, precompiled headers, but to no avail.
    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Are you sure it's in c++ mode? Make sure all the c++ eclipse components are installed, maybe you downloaded the normal java version by mistake.


  • Registered Users, Registered Users 2 Posts: 1,042 ✭✭✭Groinshot


    srsly78 wrote: »
    Are you sure it's in c++ mode? Make sure all the c++ eclipse components are installed, maybe you downloaded the normal java version by mistake.

    Yep, Positive. I've got the java version installed, with the CDT Plugin, and xCode installed so I have a compiler too. It builds fine, (no errors) but I can't launch it.


  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Try to manually set up a launch configuration? Never used it on a mac sorry, dunno how it integrates with xcode.


  • Registered Users, Registered Users 2 Posts: 1,042 ✭✭✭Groinshot


    srsly78 wrote: »
    Try to manually set up a launch configuration? Never used it on a mac sorry, dunno how it integrates with xcode.

    I don't know if it does or not, but I did read somewhere that it reiles on an external compiler. All i meant by that was that I have g++ and gcc installed. I'll give that a try after lunch, thanks.


Advertisement