Jump to content

Installing C\C++ for Eclipse 3.5

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
AoGenius

AoGenius

    Newbie

  • Members
  • Pip
  • 9 posts
Hello, new user.

I've been trying to install it and everything went fine other than the error I get when trying to run:

This is what the console shows:

Quote

**** Build of configuration Debug for project CTest ****

make all
make: Nothing to be done for `all'.

And this is the error I get when trying to debug:

Quote

'Launching CTest' has encountered a problem.

Error creating session.
details:
Error creating session
Cannot run program "gdb": Launching failed
Cannot run program "gdb": Launching failed
Cannot run program "gdb": Launching failed

The application I'm trying to run is a simple hello world within a test project.

I'm using a Cygwin debugger (I've installed gcc, g++, gdb and make), and installed CDT through Eclipse software update (in help).

Help would be appreciated, and please bear with me, I only know java...

#2
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
I think that, you either didnt supply the path to gdb at all, (just cygwin's bin), or you somewhere in eclipse you only provided paths to key executables, but not gdb(and make?)
normally just adding /path/to/cygwin/bin to your PATH env fixes it.

#3
AoGenius

AoGenius

    Newbie

  • Members
  • Pip
  • 9 posts
thanks for answering.

I didn't add anything to the eclipse path, I just downloaded CDT through the eclipse update search.

It's true I only added cygwin to the windows path, but not gdb. How exactly do I do that?

thanks

#4
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
hum... isnt gdb part of cygwin?
I dont recall Eclipse using a particular path, but a google search might be worth it...

#5
AoGenius

AoGenius

    Newbie

  • Members
  • Pip
  • 9 posts
gdb is indeed part of cygwin. I thought you meant I have to add it separately. Must have misunderstood your previous post because I don't really know what to look for in google atm.

#6
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
I think that maybe Eclipse doesnt know where to search for gdb, so maybe cygwin isnt part of your PATH environment variable.
In case you dont know about it:
How to set the path in Windows 2000 / Windows XP.

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Did you install Eclipse under Cygwin, or under Windows?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog