Code::Blocks Forums

User forums => Help => Topic started by: tjmulinazzi on June 22, 2022, 04:42:38 am

Title: Console does not display on Mac when running C code
Post by: tjmulinazzi 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!
Title: Re: Console does not display on Mac when running C code
Post by: AndrewCot 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.