When I try to compile a Hello World program (with project name C++_Project_1) in the 17.12 binary for MacOS (at https://sourceforge.net/projects/codeblocks/files/Binaries/17.12/Mac/), this is the compiler output: '/Applications/CodeBlocks.app/Contents/MacOS/cbconsole_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/{user}/Documents/Programming/C++/C++_Project_1/bin/Debug/C++_Project_1 '
-bash: /Applications/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH. /Users/{user}/Documents/Programming/C++/C++_Project_1/bin/Debug/C++_Project_1 : No such file or directory, where instead of {user} is my actual user name.
I hope this issue can be resolved, as a 64-bit release of CodeBlocks on Mac would be very beneficial for the future of C++ programming on Mac.
Note that this project worked properly in CodeBlocks 13.12 for Mac, but since that version ~~will NOT~~ does NOT work in macOS 10.15 (64-bit apps only), I would like to make the transition.
Last edit: programmer04 2020-09-03
Are you saving your project in a file path which contains spaces? (probably your user name contains spaces)
Good evening, I am having the same issue and am running Catalina 10.15.6 on a mid 2014 macbook pro. Any assistance would be greatly appreciated as I am required to use this software for my uni course so cant go any further. I have tried removing any spaces, etc. from my username.
You may want to consider using VirtualBox and running CodeBlocks 20.03 on a Windows VM if you have the space for it. There's no guaranteeing this software will be patched soon enough!
No, my username doesn't contain spaces either. I would love to be able to use at least 17.12 (since 20.03 isn't available yet in any form for Mac) and 13.12 is no longer available for now-existing macOS 10.15.
My username is
matthewbenedictif you want to know - I don't like spaces in directories since they're a pain in the butt for programming!Last edit: programmer04 2020-08-27
Hi Mattew, thank you for the input and sorry for the delay in responding.
Since recieving your reply I have found that this software works a charm when using my rasberry pi 3 b+, so I will use it in the meantime. Fingers crossed it wont be long until a solution is available as working between two divces will be quite time consuming due to resticted space.
Note for your ref. if you want to install on a pi use the command and you're done:
sudo apt-get install codeblocksThat's great! I'm glad to hear that you had that available to you.
@fuscated Does this updated information help? I'm sorry I didn't respond to you sooner.
P.S. Note that the project was called
C++_Project_1but the output seems to have it asC++_Project_1with a space at the end...I have the same problem. The problem is the quotes ' ' around the command. Copy/paste the command without the quotes and it is OK:
Can I get the following from any of the people who are having the issue reported:
1) Start Code::Blocks and before you do anything can you go to the Code::Blocks log and right click and "Copy the contents to Clipboard" . Save the clipboard data to a file called "Codeblocks.log".
2) Load your simple hello world project and re-build it.
3) Go to the "Build Log" log and right click and "Copy the contents to Clipboard" . Save the clipboard data to a file called "BuildLog.log".
4) In your ~/Library/Application Support/codeblocks directory there us a default.conf file that has your C::B configuration settings.
5) Zip file containing the project file and the main.cpp (or equivalent file)
6) The C::B version you are using. If it is before 20.03 then please update and try again.
One thing you can try is the latest MacOS nightly build that you can grab from the latest thread (or the second last thread) in the following forum:
https://forums.codeblocks.org/index.php/board,20.0.html
Last edit: Andrew Cottrell 2022-07-13
hello
, is there any option to remove these quotes, because they will slow down my work, since every time I compile, I will have to copy without quotes and paste into the terminal
, maybe you could find another way to solve this problem?
I didn't see the 20.03 nightly before! I'll definitely look into that when I get the chance!
Here is a clickable version of the URL above.
Last edit: programmer04 2022-07-06
Let me know how you go.
Fixed with ticket [1315] change in [r12902].
As such this ticket can be closed.
Related
Commit: [r12902]