Jump to content

a very easy to use compiler for c

- - - - -

  • Please log in to reply
7 replies to this topic

#1
prr98

prr98

    Newbie

  • Members
  • Pip
  • 3 posts
I have downloaded a few compilers, but i dont know how to use them!!! Could anybody show me an easy to use compiler or a tutorial on how to compiler a program? As you can see from my post count and everything im pretty new and i have just started to become interested in programming, but i dont know how to compile a program so i cant start learning. Thanks in advance everybody.

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
What operating system are you using? GCC is the easiest one I know to work with.
sudo rm -rf /

#3
lespauled

lespauled

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 231 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash
I agree, GCC is easy.

You can also get CodeBlocks, which is an IDE, that uses GCC by default. All you have to do is click build and run, and it will compile your program and run it (as long as there are no errors).

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Of course, you can configure the options as well using a simple checkbox-based interface. Definitely go with Code::Blocks. It's free, too.
sudo rm -rf /

#5
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Here are a few tutorials for vc++ 2010
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.

#6
CurlyBonesHopkins

CurlyBonesHopkins

    Newbie

  • Members
  • Pip
  • 7 posts
I agree with everyone else, I use gcc and its great!

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Most compilers are either controlled by another program (Code::Blocks can control GCC/MinGW, make files, etc.), or are run through the command line. EVERY compiler that is worth a darn is inherently not simple. That's not to drive you nuts, but because there are a lot of options available, and the programs they need to be able to compile can be compiled in a lot of different ways.

GCC is a compiler that has several books written on it (some free), so that may help you understand how much can be involved. One is available here: Using the GNU Compiler Collection (GCC)

Ultimately, you may do better to pick one compiler, and ask us questions about how to use it. Once you're comfortable with a compiler, it is easy. I code C/C++ programs in text editors, and drop to command line to compile them. I don't think about the process until something goes wrong. Since you're new, you're still learning the process.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Though GCC is definitely not simple, I think it's more intuitive than other ones I've tried, namely ICC and ml (32-bit).
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users