On Thu, Dec 22, 2011 at 10:52 AM, Sree <[email protected]> wrote: > 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.
On a related tool, way back in my days as a developer, we used lint (to remove all warnings and errors) before submitting our code to the build queue (vt100 terminals connecting to the main frame over 1200 bps dial up lines) A search for the same coughed up 'splint' [1] which looks very promising. [1] http://www.splint.org/ -- Arun Khan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
