Code::Blocks Forums

User forums => Help => Topic started by: jj_hh on August 17, 2020, 10:11:29 pm

Title: build and run
Post 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?

Title: Re: build and run
Post by: BlueHazzard on August 18, 2020, 08:50:39 am
I think this is some limitation (bug) of the mac version... did you searched the forum?
Title: Re: build and run
Post by: jj_hh on August 19, 2020, 11:03:18 am
I did, but so far I found one similar question with no clear response.
Title: Re: build and run
Post by: BlueHazzard on August 19, 2020, 11:29:27 am
maybe the user Xaviou can help you?
Title: Re: build and run
Post by: jj_hh on August 19, 2020, 02:08:45 pm
Thanks, I will send him a PM!