尝试设置C编程环境 [英] Trying to setup a C programming environment

查看:106
本文介绍了尝试设置C编程环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始学习C编程,我已经尝试不成功地设置环境。



我有Windows 8.1 64Bit。我试过的是:




  • 为我的Netbeans IDE(我目前用于Web开发)安装C /


  • 安装MinGW并根据此文档


  • Netbeans似乎可以工作并构建hello world应用程序,




然后我决定卸载C插件,并删除MinGW文件夹尝试Code :: Blocks



使用默认值和编译器安装Code :: Blocks后,同样发生,它构建成功,但当控制台打开它不显示任何Hello World,它只是冻结那里!



这真的很令人沮丧,我没有为这些语言设置环境的经验。 p>

任何帮助将非常感谢

解决方案

感谢Bo Persson快速评论。
如果您的程序正确构建,但它冻结了控制台或只是似乎没有启动(但IDE显示的事情发生)是因为AVAST Antivirus正在停止正常执行。



在C中开发时只需禁用AVAST Shields。我不知道它是否适用于所有版本的Windows或环境。


I'm gonna start to learn C programming, and I've tried unsuccessfully to setup the environment.

I have Windows 8.1 64Bit. What I have tried is:

  • Install the C/C++ plugin for my Netbeans IDE (which I currently use for Web Development)

  • Install MinGW and add some other stuff according to this documentation

  • Netbeans seemed to work and build the hello world application, but in the end, the console froze and no hello world was displayed, it just stayed there thinking.

Then I decided to uninstall the C plugin for Netbeans and delete the MinGW folder to try Code::Blocks

After installing Code::Blocks with the default values and compilers, the same happens, it Build successfully but when the console opens it doesn't display any Hello World, it just freezes there!

It's really frustrating and I have no experience setting up environments for these languages.

Any help will be very appreciated

解决方案

Thanks to Bo Persson for his quick comment. If your program builds properly, but it freezes the console or just doesn't seem to start (but the IDE shows something's going on) is because AVAST Antivirus is stopping it from executing properly.

Just disable AVAST Shields while you're developing in C. I don't know if it applies to all versions of Windows or environments.

这篇关于尝试设置C编程环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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