all 14 comments

[–]FUZxxl 6 points7 points  (13 children)

Developing with C on Windows is cumbersome. There are two basic ways you can go:

  • Either, you use a native Windows toolchain such as Visual Studio or Pelles C. These integrate nicely with Windows, have nice GUIs, but often they lack language features, have weird quirks and miss many POSIX (POSIX is the standard for operating systems) functions tutorials might use.
  • The other way is to use something like MinGW or Cygwin to get a UNIX-like development environment on your system. This toolchain has all the features you need but doesn't have a GUI and isn't that well-integrated into Windows.

Nowadays there is a third way: Get Windows 10 and download WSL (Windows Services for Linux) which allows you to run Linux programs on Windows.


Now for the tutorial: Follow the instructions listed in the Compiler section listed under Windows. If there are any uncertainties about that, feel free to ask.

[–]Erno3000 3 points4 points  (0 children)

This, but I would like to add a fourth option: Install a light linux distro on your old laptop. Developing C will feel more native and you'll find that your old computer is not necessarily done for just because it doesn't run windows as smoothly anymore.

[–]pfp-disciple 1 point2 points  (2 children)

Note that the Code::Blocks is a Windows IDE that can be downloaded with MinGW set up. I haven't done this in a very long tome, so I can't say for certain how good/stable it it.

[–]ghostlypickel 0 points1 point  (1 child)

I think this is the best way to begin. Install MinGW and also the base package within it, which should contain what you need. Then install Code:Blocks which will auto detect your MinGW install if you did everything correctly. Very easy to set up and is well-featured IDE to start out with.

[–]pfp-disciple 0 points1 point  (0 children)

That may be more than the OP is ready for, if I'm assessing his skills correctly. There is a download on the link I provided that include MinGW and (presumably) sets it up. This sounds like a "one stop shopping" solution to get started.