Author Topic: Console output window/black window doesn't appear when building/running code  (Read 488 times)

Offline thiggs666

  • Single posting newcomer
  • *
  • Posts: 2
I am running Code::Blocks version Code::13.12 on macOS Version 10.14.6
The compiler I use is GNU GCC Compiler

When I try to build and run any code by either clicking Build > Build & Run or just F9, I get the message "It seems that this project has not been built yet. Do you want to build it now?" Then, whether I click "No," "Cancel," or "Yes," the same thing happens: nothing.

For example/dummy code, if I run:

#include <iostream>

using namespace std;

int main()
{
    char box = 'z';
    cout << box << endl << box << endl;

    return 0;
}

that prompt saying "It seems your project has not been built yet" comes up.

The build log after I ran that code is this:

-------------- Build: Debug in Tutorial (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -c /Users/teddyhiggins/Desktop/Folders/Tutorial/main.cpp -o obj/Debug/main.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

All the best, and thank you for any help.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12300
    • Travis build status
You have to use something newer than 13.12. There are recent night builds for macOS, which work a bit better, but don't expect smooth ride on this OS.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline thiggs666

  • Single posting newcomer
  • *
  • Posts: 2
Is there a newer version of Codeblocks available for Mac? If not, would you not recommend using a Mac for C++? Or, would I be better served using Xcode? Thank you.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12300
    • Travis build status
There are only night builds. See the sub forum. I'm not using mac too much. Xcode would work a lot better for sure. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]