Author Topic: Connecting CodeBlocks to Terminal  (Read 2727 times)

Offline Miko217

  • Single posting newcomer
  • *
  • Posts: 2
Connecting CodeBlocks to Terminal
« on: March 18, 2022, 12:36:40 am »
Hi  Y'all :)
I just download codeblocks as I desire to learn the C program. When I run the "Hello World" Program the terminal opens with this:

Last login: Thu Mar 17 19:22:17 on ttys000
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/Mukhtar/Documents/C Projects/P1/bin/Debug/P1
Nohas-MacBook:~ Mukhtar$ /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/Mukhtar/Documents/C Projects/P1/bin/Debug/P1
sh: /Users/Mukhtar/Documents/C: No such file or directory

Process returned 127 (0x7F)   execution time : 0.006 s
Press ENTER to continue.

Any help would be appreciated!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Connecting CodeBlocks to Terminal
« Reply #1 on: March 18, 2022, 12:50:18 am »
I suggest not using spaces or non-ASCII characters in the path.

Edit: Instead of "C Projects", I would use "C_Projects".

Tim S.
« Last Edit: March 18, 2022, 12:52:01 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miko217

  • Single posting newcomer
  • *
  • Posts: 2
Re: Connecting CodeBlocks to Terminal
« Reply #2 on: March 18, 2022, 06:00:53 am »
Thanks that was the issue, much appreciated!