'When I build and run code on CodeBlocks why do I now get a zsh: file or directory not found error?

I have written some code in CodeBlocks, and when I run it, I get a zsh: file or directory not found error. I never used to get this before but after installing Xcode I started getting it. Here is the error log after I click on 'build and run' in CodeBlocks:

zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/patrickchong/Desktop/BMLL preparation/C++ tutorial/C++ Tutorial 2/CodeAlong1/bin/Debug/CodeAlong1

Any suggestions? Is it related to the code I am running? Thanks!

Here is some details regarding the compiler of my Codeblocks:

enter image description here

Also to add that my 'executable path' is empty at the moment! Where should this point to?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source