|
|
|
|
Re: building C/C++ hello world [message #1850353 is a reply to message #901692] |
Fri, 25 February 2022 22:36 |
Laszlo Zalanyi Messages: 1 Registered: February 2022 |
Junior Member |
|
|
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 07:56] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03845 seconds