Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't build, can't debug...
Can't build, can't debug... [message #55481] Fri, 27 December 2002 09:21 Go to next message
Eclipse UserFriend
Originally posted by: dd.oal.com

Hi,

I am using Eclipse R2.0.2 on Windows 2000, with CDT 1.0.1.
I have made a minimum C++ project (only 1 file with just main()!).

First problem: I can't build: nothing happens and I can see in the log:

java.lang.NullPointerException
at org.eclipse.cdt.internal.core.CBuilder.invokeMake(CBuilder.j ava:153)
(...)

So I used my own build command => it worked fine!

I can Run it, it works fine (euhh, in the "Launch properties" dialog, "C/C++
application" / "search" shows nothing, I have too specify my application by
myself ???!).


Finally, I can't debug it, because when I launch the debugger I have:

org.eclipse.core.runtime.CoreException[150]:
org.eclipse.cdt.debug.core.cdi.CDIException: Error initializing: Exec
error:Launching failed
at
org.eclipse.cdt.debug.mi.core.GDBDebugger.createLaunchSessio n(GDBDebugger.ja
va:47)


That makes a lot of troubles. Is my configuration not stable? Did I mess
somewhere?

Thanks a lot!
Re: Can't build, can't debug... [message #55508 is a reply to message #55481] Fri, 27 December 2002 09:17 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
David wrote:

> Hi,

> I am using Eclipse R2.0.2 on Windows 2000, with CDT 1.0.1.
> I have made a minimum C++ project (only 1 file with just main()!).

> First problem: I can't build: nothing happens and I can see in the log:

> java.lang.NullPointerException
> at org.eclipse.cdt.internal.core.CBuilder.invokeMake(CBuilder.j ava:153)
> (...)

> So I used my own build command => it worked fine!

> I can Run it, it works fine (euhh, in the "Launch properties" dialog, "C/C++
> application" / "search" shows nothing, I have too specify my application by
> myself ???!).

Are you sure you specify makefile or/and path to make utility?


> Finally, I can't debug it, because when I launch the debugger I have:

> org.eclipse.core.runtime.CoreException[150]:
> org.eclipse.cdt.debug.core.cdi.CDIException: Error initializing: Exec
> error:Launching failed
> at
> org.eclipse.cdt.debug.mi.core.GDBDebugger.createLaunchSessio n(GDBDebugger.ja
> va:47)


> That makes a lot of troubles. Is my configuration not stable? Did I mess
> somewhere?

Make sure that you use correct version of gdb and path to gdb specifies
rightly

> Thanks a lot!



Igor S. Zamyatin

Interstron Ltd.
Re: Can't build, can't debug... [message #55562 is a reply to message #55508] Fri, 27 December 2002 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dd.oal.com

You're right.

Because the entry point for my make tool is a "make.bat", I was thinking the
"default command" was OK.
But it is NOT. "make" and "make.bat" are not interpreted the same way.....?
Why ? I was thinking it was the OS which was interpreting the command; for
the command "make" on Win 2000, it looks first for a "make.bat" then a
"make.com" and then a "make.exe"....

For the debugger, it was found on the path....

Thanks.....

David Dufour
Re: Can't build, can't debug... [message #55588 is a reply to message #55562] Fri, 27 December 2002 12:35 Go to previous message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
David wrote:

> You're right.

> Because the entry point for my make tool is a "make.bat", I was thinking the
> "default command" was OK.
> But it is NOT. "make" and "make.bat" are not interpreted the same way.....?
> Why ? I was thinking it was the OS which was interpreting the command; for
> the command "make" on Win 2000, it looks first for a "make.bat" then a
> "make.com" and then a "make.exe"....

You have to use standard "make" utility which you usually is situated in
C/C++ compilers such as MSVC and GCC. Also you have to write makefile.
Or you can use "External Tools" options of the project...


> For the debugger, it was found on the path....

> Thanks.....

> David Dufour


Igor S. Zamyatin
Previous Topic:hpp file parsing
Next Topic:cygwin-gdb / Microsot Compiler
Goto Forum:
  


Current Time: Sun Jun 30 00:08:14 GMT 2024

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

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

Back to the top