Code::Blocks Forums
User forums => Help => Topic started by: jj_hh on August 17, 2020, 10:11:29 pm
-
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?
-
I think this is some limitation (bug) of the mac version... did you searched the forum?
-
I did, but so far I found one similar question with no clear response.
-
maybe the user Xaviou can help you?
-
Thanks, I will send him a PM!