代码阻止失败的消息运行您好代码 [英] code blocks failed message runing hello code

查看:47
本文介绍了代码阻止失败的消息运行您好代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行此代码,我是一个初学者,我真的很挣扎,我不知道该怎么办.

I'm trying to run this code and im a beginner at this im really struggling I don't know what to do.

NB:"MinGW"这里使用的是Code :: Blocks版本.

NB: A "MinGW" version of Code::Blocks was used here.

#include <stdio.h>
#include <omp.h>

int main() {

  printf ("Hello, world:");
  #pragma omp parallel
    printf (" %d", omp_get_thread_num ());
  printf ("\n");
  return 0;
}

推荐答案

以以下方式更改调试器设置.

Change a debugger setting in the following way.

Settings 菜单中单击 Debugger ... ,然后在屏幕左侧选择调试器类型 Default .这应该显示可执行路径设置为:

From the Settings menu click on Debugger..., then on the left of the screen select Default, a debugger type. This should show Executable paths set to:

C:\ MinGW \ bin \ gdb.exe

将此更改为:

C:\ Program Files \ Codeblocks \ MinGW \ bin \ gdb.exe

然后您应该可以使用调试器.

You should then be able to use the debugger.

注意:其他信息

如果您安装了"MinGW"安装包,则需要上述类型的修复程序.Windows上"Code :: Blocks 20.03"的版本,使用"codeblocks-20.03mingw-setup.exe"(2021年4月8日相关的版本,使用的是默认安装类型).

The above type of fix is required if you install the "MinGW" version of 'Code::Blocks 20.03' on Windows, using 'codeblocks-20.03mingw-setup.exe' ( the version relevant on 8th April 2021 , with the default installation type used ).

这篇关于代码阻止失败的消息运行您好代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆