Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Run: Program not a recognized executable.

Sorry if this is a stupid question. But I realized tried what i can
and it still doesn't work.
it is only a helloworld function. Here is the make file. I tried to
run it in Eclipse and set the "main.exe" as the c/c++ application. but
it only throws out the following errors:
can anybody tell me why?
Thanks for your information!

makefile: 
main:main.o
	g++ -o main main.o -L C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++
main.o:main.c
	g++ -ggdb -c main.c
all:
	${MAKE} main
clean:
	-del main.o

Errors:
Program not a recognized executable.
java.io.FileNotFoundException: Program not Binary
org.eclipse.cdt.launch.AbstractCLaunchDelegate.verifyBinary(AbstractCLaunchDelegate.java:747)
org.eclipse.cdt.launch.internal.LocalRunLaunchDelegate.launch(LocalRunLaunchDelegate.java:59)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
  Program not Binary
java.io.FileNotFoundException: Program not Binary
org.eclipse.cdt.launch.AbstractCLaunchDelegate.verifyBinary(AbstractCLaunchDelegate.java:747)
org.eclipse.cdt.launch.internal.LocalRunLaunchDelegate.launch(LocalRunLaunchDelegate.java:59)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)


Back to the top