[Ilugc] [TIP] some C

  • From: sreenidimn@xxxxxxxxx (Sree)
  • Date: Thu, 22 Dec 2011 10:52:49 +0530

Hi,

$ gcc i.c

will get you the result.

Just adding to that, I've found that -Wall switch is very useful for
finding silly errors that might creep in, so it makes sense to compile
every C program with that switch on. And -g is useful if the compiled
executable is to be debugged at a later stage.

Both these switches are applicable to g++ too, and has the same meaning.

Hope that helps :)


-- 
Regards,
Sree

Other related posts: