I am stuck at this ‘build and run’ function. I really hope someone can help me out. When I click the 'build and run' button, I receive the following error in my terminal (mac):
'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/jeroen/Desktop/giraffe/bin/Debug/giraffe '
jeroen@MacBook-Air-Jeroen ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/jeroen/Desktop/giraffe/bin/Debug/giraffe '
zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/jeroen/Desktop/giraffe/bin/Debug/giraffe
jeroen@MacBook-Air-Jeroen ~ % /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/jeroen/Desktop/giraffe/bin/Debug/giraffe
However, when I just enter the following command (directory) in my terminal:
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/jeroen/Desktop/giraffe/bin/Debug/giraffe
It does give me the “Hello World” output in my terminal.
Obviously, this is quite annoying. Hence, my question is: Does anyone know how I could run my code by just using the ‘build and run’ function?