building C/C++ hello world [message #901692] |
Tue, 14 August 2012 03:50  |
Eclipse User |
|
|
|
Hi,
I need help with initialisation settings of C/C++ Eclipse. I have install C/C++ Eclipse Juno, MinGW and msys. I put C:\Program Files\MinGW\bin to the PATH and Build "Hello world c++ program" --> Eclipse gave me error:
Description Resource Path Location Type
sh -c "autoreconf -i"
Cannot run program "sh": Launching failed
Error: Program "sh" not found in PATH
PATH=[C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Diskeeper Corporation\ExpressCache\;C:\Program Files\MATLAB\R2010a\runtime\win64;C:\Program Files\MATLAB\R2010a\bin;C:\Program Files\MinGW\bin]
Text_project -1 Configure Problem
What can I do next?
Thank you for any help.
|
|
|
|
|
|
Re: building C/C++ hello world [message #1850353 is a reply to message #901692] |
Fri, 25 February 2022 17:36  |
Eclipse User |
|
|
|
Hello,
It must be some supertrivial problem but...
I simply can not run or debug the "official" helloworld program. It builds without errors, but when I launch it simply terminates with exit code 0.
This is a gtk version of Helloworld which should pop up a small window with a button, which after pressing should print "Hello world" in terminal.
If I start the binary from terminal (from Debug/ folder e.g) it works.
ubuntu 20.04 eclipse 21-09 versions. Managed c++ project, linux toolchain default settings. External build. The debug/run configuration by default set correctly, points to the executable which is there as I wrote I can run it from terminal.
Additional infos:
Sometimes , I don't know why it works. Window pops up and program runs say in debug mode. After I stop it it never runs again. There is a popup window - I suppose message but too fast to see what it says.
Starting eclipse from command line there are error messages:
Unable to find full path for "-E"
Unable to find full path for "-E"
Unable to get $PATH.
Unable to find full path for "gcc"
Unable to get $PATH.
Unable to find full path for "-E"
Unable to find full path for "-E"
Unable to find full path for "-std=c++17"
Unable to find full path for "-E"
Unable to find full path for "-std=c++17"
The project build variables obviously have the proper PATH which contains the proper location for gcc. For the other errors I do not understand what they stand for. I haven't found anything about them.
thanks
[Updated on: Sat, 26 February 2022 02:56] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03386 seconds