Not to mention that gcc is a special command in the way that it is actually meant to be run with sh and not a normal Amiga shell/CLI.
Ok thanks, I wasn't referring to Pascal anyway, I was talking in general, the problem I mentioned happens also with other applications running via Icons on Wanderer, where to work properly you have to add the "CLI" parameter in the Icon Tooltype.
All this must also be done on Amiga OS 3.x, only OS 3.5/3.9 does not need because it has a special Tab that automatically adds the CLI parameter to the icon, see screenshot
You can of course but, i would not recommend it. It is ok if the only this you do is show gcc's version number.
No GCC but also g ++ work perfectly from Shell in AROS x86, although I am not expert I have compiled some C sources without problems