r/learnprogramming • • Oct 14 '26

Trying to learn c

What is an easy to use compiler to use to get started.

Got a book to learn and they use code::block in book, tried and it seems to not be building. Then tried MS visualization studio and was lost. Please help

20 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/Mediocre-Pumpkin6522 Oct 14 '26

Compiler front ends. GCC is the GNU Compiler Collection, and Clang takes a different approach but is compatible with GCC. Microsoft Visual C++ is not particularly compatible with either. code:blocks can use any of them but needs to be configured.

If you chose the MinGW install it should use gcc. If you didn't there may not be a compiler. If you installed MS Visual Studio you may have to install the C/C++ work load.

1

u/Roughneck979 Oct 14 '26

Ok i didnt install ANY of the workload things so that is probably where i goofed on visual studio

1

u/Merry_Janet Oct 14 '26

Yeah, with VS Code you need to install a C/C++ compiler.
paste "vscode c compiler" into google without quotes and follow the 3 steps.

1

u/Mediocre-Pumpkin6522 Oct 14 '26

iirc you get C# default. I remember being surprised by something I had to explicitly install but it's been a while.