Menu

#863 17.12 on Mac - Cannot compile Hello World program

Undefined
fixed
nobody
Bug_Report
2023-09-05
2019-08-14
No

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.

Discussion

  • programmer04

    programmer04 - 2019-08-15

    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
  • Teodor Petrov

    Teodor Petrov - 2019-09-01

    Are you saving your project in a file path which contains spaces? (probably your user name contains spaces)

     
  • Teodor Petrov

    Teodor Petrov - 2019-11-23
    • Milestone: Release_xx.yy --> Undefined
     
  • David OConner

    David OConner - 2020-08-26

    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.

     
    • programmer04

      programmer04 - 2020-08-27

      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!

       
  • programmer04

    programmer04 - 2020-08-27

    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 matthewbenedict if 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
  • David OConner

    David OConner - 2020-08-28

    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 codeblocks

     
    • programmer04

      programmer04 - 2020-08-28

      That'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.

       
  • programmer04

    programmer04 - 2020-09-03

    P.S. Note that the project was called C++_Project_1 but the output seems to have it as C++_Project_1 with a space at the end...

     
  • Vincent

    Vincent - 2020-10-15

    I have the same problem. The problem is the quotes ' ' around the command. Copy/paste the command without the quotes and it is OK:

    Last login: Thu Oct 15 10:15:50 on ttys006
    mac@intosh ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/mac/Documents/essai/bin/Debug/essai '
    zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/mac/Documents/essai/bin/Debug/essai 
    mac@intosh ~ % 
    mac@intosh ~ % /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/mac/Documents/essai/bin/Debug/essai
    Hello world!
    
    Process returned 0 (0x0)   execution time : 0.252 s
    Press ENTER to continue.
    
     
  • Andrew Cottrell

    Andrew Cottrell - 2022-07-06

    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
    • Hojirakhmatullo

      Hojirakhmatullo - 2023-09-05

      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?

       
  • programmer04

    programmer04 - 2022-07-06

    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
    • Andrew Cottrell

      Andrew Cottrell - 2022-07-06

      Let me know how you go.

       
  • Andrew Cottrell

    Andrew Cottrell - 2022-09-22

    Fixed with ticket [1315] change in [r12902].

    As such this ticket can be closed.

     

    Related

    Commit: [r12902]

  • Miguel Gimenez

    Miguel Gimenez - 2022-09-25
    • status: open --> fixed
     

Log in to post a comment.

Auth0 Logo