Can't build, can't debug... [message #55481] |
Fri, 27 December 2002 09:21 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Igor S. Zamyatin![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=isz%40interstron.ru) 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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03473 seconds