【问题标题】:code blocks :: It seems that this project has not been built yet代码块 :: 这个项目好像还没建
【发布时间】:2017-01-06 07:47:41
【问题描述】:

我正在使用 mac 10.12 和 我下载了代码块和命令行开发者工具 但是当我尝试运行任何程序时,会出现一个窗口并说“似乎项目尚未构建。你想现在构建它吗?”

这是构建日志

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

gcc -Wall -g  -c /Users/macbookproretina13inch/Documents/Programming/aaaa/main.c -o obj/Debug/main.o
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Process terminated with status 69 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))


-------------- Run: Debug in aaaa (compiler: GNU GCC Compiler)---------------

Checking for existence: /Users/macbookproretina13inch/Documents/Programming/aaaa/bin/Debug/aaaa
Executing: osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/macbookproretina13inch/Documents/Programming/aaaa/bin/Debug/aaaa "' -e 'end tell'  (in /Users/macbookproretina13inch/Documents/Programming/aaaa/.)
Process terminated with status 0 (0 minute(s), 3 second(s))

【问题讨论】:

    标签: codeblocks


    【解决方案1】:

    从 App Store 下载 Xcode,并在终端中运行它以安装 Xcode 的命令行工具:

    $ xcode-select --install

    这将安装必要的编译器和工具,并且应该可以解决问题。

    【讨论】:

    • 谢谢,但这对 mac 来说效果很好,因为它看起来像 windows 吗?
    猜你喜欢
    • 2016-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-06
    • 1970-01-01
    • 1970-01-01
    • 2012-08-19
    相关资源
    最近更新 更多