-1

I'm trying to program a simple hello world program using c++/geany on the raspberry pi. However, when I try to run it. The output terminal says "Program exited with code: 126". Can anyone tell me what I'm doing wrong? (https://i.stack.imgur.com/wZs02.png)

I tried running sudo commands like sudo apt-get update/upgrade, clean, upgrade --fix-missing. Reinstalling geany. I tried using codeblocks ide and had no luck.

bc345
  • 11
  • 2

2 Answers2

0

I had to "build"/compile it first on geany before I ran the code.

bc345
  • 11
  • 2
0

You need to save the file as ".py"

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 20 '23 at 10:39