I know this has been answered before, but nothing I have seen has worked!!! I'm not panicking just slightly mad it's not working. It has never worked once. I tried:
adding gnat to the path again,
gcc -c -x ada hello.adb
I know this has been answered before, but nothing I have seen has worked!!! I'm not panicking just slightly mad it's not working. It has never worked once. I tried:
adding gnat to the path again,
gcc -c -x ada hello.adb
I looks like /usr/bin appears in your $PATH before the desired path, /Users/blessb/opt/GNAT/2020/bin. The search for gcc finds the original, which appears to be unaware of Ada. One solution is to add the GNAT directory to the front of your PATH, so that it will take precedence.
export PATH=/Users/blessb/opt/GNAT/2020/bin:$PATH
As @Simon Wright comments, see Adding a new entry to the PATH variable in ZSH for additional details regarding path management.