Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » hello world with eclipse c/c++(i want just run hello world)
hello world with eclipse c/c++ [message #1817948] Tue, 03 December 2019 08:23 Go to next message
Eclipse UserFriend
hi ,
i just want to run a simple hello world project.
i created a C managed build.
hello world ansi with MinGW

after building it just shows:

14:14:14 **** Rebuild of configuration Debug for project testproj ****
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\testproj.o" "..\\src\\testproj.c" 
gcc -o testproj.exe "src\\testproj.o" 

14:14:14 Build Finished. 0 errors, 0 warnings. (took 758ms)

so it maybe looks ok...

then i want to run it ... but it pops up a window : details:

Error starting process.
Cannot run program "C:\Users\u\eclipse-workspace3\lol\Debug\lol.exe": Launching failed
Cannot run program "C:\Users\u\eclipse-workspace3\lol\Debug\lol.exe": Launching failed
Cannot run program "C:\Users\u\eclipse-workspace3\lol\Debug\lol.exe": Launching failed



ah now finaly the error shows 0 errors...
Run As configurations:
testproj
Debug/testproj.exe


Used tools:
Currenct builder Gnu Make Builder

GCC Assembler
GCC Archiver
GCC C++ Compiler
GCC C Compiler
MinGW C Linker
MinGW C++ Linker


of course finaly my little code :
#include <stdio.h>
#include <stdlib.h>

int main(void) {
	puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
	return EXIT_SUCCESS;
}
Re: hello world with eclipse c/c++ [message #1817990 is a reply to message #1817948] Tue, 03 December 2019 18:48 Go to previous message
Eclipse UserFriend
The launch confguration is trying to run a program named lol.exe from project lol.

Find a launch configuration (or create a new one) and set it to


    *) Project: testproj
    *) With the C/C++ Application: testproj.exe

Then use than launch configuration to run or debug testproj.exe

If you already have one then you tried to run the wrong one.

Here's an example for executable HelloEigen in the Debug configuration for project HelloEigen
index.php/fa/36905/0/

[Updated on: Tue, 03 December 2019 18:49] by Moderator

Previous Topic:undefined reference to 'WinMain@16'
Next Topic:How to use CDT to create a .h with a class decl?
Goto Forum:
  


Current Time: Wed Jun 18 04:09:13 EDT 2025

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

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

Back to the top