User forums > Using Code::Blocks

Help!

(1/2) > >>

candlesticks:
I am completely new to coding/Code::Blocks. I am working through a C++ workbook to teach myself.

Can anyone help me figure out what I'm doing wrong? I am working on the first exercise in the book, but when I run the program I get this message. (I have replaced with "XX" pieces that have my name to maintain my privacy.)

Last login: Fri Feb 19 16:04:45 on ttys000
XX@XX-MacBook-Pro ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Documents/CPP_AIO4/BookI/Chapter03/SayHello/SayHello/bin/Debug/SayHello '
zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/XX/Documents/CPP_AIO4/BookI/Chapter03/SayHello/SayHello/bin/Debug/SayHello
XX@XX-MacBook-Pro ~ %

I've tried starting over and using a different file location but I just get the same message.

Any help is appreciated.


UPDATE 2/20/21

So, I've figured out that if I copy the location between the two ' characters and try to run that again in terminal, the code works.

Pecan:
I'm not a Mac user, but the message says to me that you're telling the debugger to start  your program in a shell named zsh.

Evidently there's no zsh shell on your systems.

You can either install zsh, or change the shell to use at main menu/setting/environment.

At the bottom of that dialog is a box to change the shell to use when running the debugger.

candlesticks:

--- Quote from: Pecan on February 20, 2021, 07:59:38 pm ---I'm not a Mac user, but the message says to me that you're telling the debugger to start  your program in a shell named zsh.

Evidently there's no zsh shell on your systems.

You can either install zsh, or change the shell to use at main menu/setting/environment.

At the bottom of that dialog is a box to change the shell to use when running the debugger.


--- End quote ---

It looks like my settings reflect the same shell location: "/bin/sh -c"

I have no idea where the zsh is coming from.

oBFusCATed:
You have zsh. Zsh is telling you that it cannot find something to start it.

candlesticks:
So, what do I need to do? Sorry--I am a complete beginner. I am trying to learn. I'm using a workbook, and this problem is not addressed in the book.

Navigation

[0] Message Index

[#] Next page

Go to full version