I am building and running a c program using Codeblocks IDE and this is what I get on the shell:
XX@XX-MBP ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2 '
zsh: no such file or directory:
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2
however when I run (in the same shell) the following line:
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2
It does work as expected:
XX@XX-MBP ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2 '
zsh: no such file or directory:
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2
XX@XX-MBP ~ % /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Desktop/Codeblocks/try2/bin/Debug/try2
Hello world!
How can I solve it so it would run it right away?