Author Topic: build and run  (Read 320 times)

Offline jj_hh

  • Single posting newcomer
  • *
  • Posts: 3
build and run
« 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 '
[email protected] ~ % '/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
[email protected] ~ % /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?


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2814
Re: build and run
« Reply #1 on: August 18, 2020, 08:50:39 am »
I think this is some limitation (bug) of the mac version... did you searched the forum?

Offline jj_hh

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run
« Reply #2 on: August 19, 2020, 11:03:18 am »
I did, but so far I found one similar question with no clear response.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2814
Re: build and run
« Reply #3 on: August 19, 2020, 11:29:27 am »
maybe the user Xaviou can help you?

Offline jj_hh

  • Single posting newcomer
  • *
  • Posts: 3
Re: build and run
« Reply #4 on: August 19, 2020, 02:08:45 pm »
Thanks, I will send him a PM!