Can't build, can't debug... [message #55481] |
Fri, 27 December 2002 04:21  |
Eclipse User |
|
|
|
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 04:17   |
Eclipse User |
|
|
|
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 #55588 is a reply to message #55562] |
Fri, 27 December 2002 07:35  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03871 seconds