What to do if gcc is not working

Wendyam -  
letrancheur Posted messages 256 Status Member -
I need help. I am a beginner in C programming. An error code appears when I use the "gcc" tool to run a program on cmd. What should I do?

2 answers

  1. NHenry Posted messages 15235 Registration date   Status Moderator Last intervention   387
     
    Provide more information?
    because as it stands, we know nothing about your problem.

    --
    I mainly work in VB6 and VB.NET, with a bit of C#, but moderation often brings me to other languages.
    In VB.NET, make sure to enable "Option Explicit" and "Option Strict."
    1
  2. letrancheur Posted messages 256 Status Member 7
     
    Hello,
    If you're a beginner and you're on Windows, install Code::Blocks, it will help you a lot.
    And it will save you the hassle of installing gcc.

    Once you're a bit more experienced, you can either install a Linux VM and compile from there in the terminal.
    Or link Code::Blocks' gcc to your terminal and compile directly from your terminal because Code::Blocks has assistance to help beginners. This is not always great because you might pick up bad habits.
    0