Author Topic: Console does not display on Mac when running C code  (Read 896 times)

Offline tjmulinazzi

  • Single posting newcomer
  • *
  • Posts: 1
Console does not display on Mac when running C code
« on: June 22, 2022, 04:42:38 am »
I am new to C and when I try to just run hello world my terminal pops up and says:

'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/trajan/Desktop/test/bin/Debug/test '
trajan@Trajans-MacBook-Air ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/trajan/Desktop/test/bin/Debug/test '
zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/trajan/Desktop/test/bin/Debug/test

How can I get the console to pop up or what am I doing wrong?
Please help. Thanks!

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 653
Re: Console does not display on Mac when running C code
« Reply #1 on: June 22, 2022, 06:06:40 am »
Nothing you are doing is wrong as I can reproduce the issue.
Unfortunately at this point in time I cannot help as C++ source level debugging on the MacOS using GDB is not easy to get working due to Apple security changes a few releases ago and I have not successfully got GDB to work.