0

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

Juan Bonnett
  • 1,823
  • 1
  • 15
  • 33
  • 6
    Why are you jumping through all those hoops? Just download free MS Visual Studio and start playing. Should be good enough for you. You can start exploring compiler differencies later. – SergeyA Nov 20 '15 at 16:43
  • 1
    If you use Avast anti-virus, it has lately been known to eat your program. – Bo Persson Nov 20 '15 at 16:50
  • 2
    @SergeyA: Maybe OP wants a C standard-compliant compiler and one which is also available for other platforms? – too honest for this site Nov 20 '15 at 16:54
  • There might be a very different problem on your system which is not related to the dev-tools. – too honest for this site Nov 20 '15 at 16:55
  • @Olaf, judging by the choices OP has made, it does not seem this way. I believe, OP just wants to do some hellowording - you do not need latest clang for this. – SergeyA Nov 20 '15 at 16:58
  • @BoPersson ok The actuall reason was that Avast was keeping my program from executing, if you can put it as an answer I can mark it! For the rest, all the dev tools and compilers are well installed and working. – Juan Bonnett Nov 20 '15 at 17:04

1 Answers1

2

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.

Juan Bonnett
  • 1,823
  • 1
  • 15
  • 33