News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

CodeBlocks can't "build and Run" the the "Hello world"

Started by shuilin, August 09, 2023, 04:18:13 AM

Previous topic - Next topic

shuilin

Whenever I tried to run the basic program.
It always shows below:Please help me!

Last login: Tue Aug  8 22:08:58 on ttys000
'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe '
shuilin@Shuis-MBP ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/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/shuilin/Desktop/Giraffe/bin/Debug/Giraffe
shuilin@Shuis-MBP ~ %


MichaelAgarkov

It looks like some C::B files are missing, try reinstalling. I never used macOS, so I can't help further than that.

stahta01

#2
The terminal program setting in CB needs to be changed or the OP needs to install zsh terminal.

Edit: Settings -> Enviroment
General Setting
Change "Terminal to launch console program" or install terminal listed in stetting

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]