From mboxrd@z Thu Jan 1 00:00:00 1970 From: llewelly@198.dsl.xmission.com To: berty Cc: help-gcc@gnu.org Subject: Re: compiling c++ using gcc Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: References: X-SW-Source: 1999-12n/msg00378.html Message-ID: <19991231222400.GIEncxjzhe5aG25SsGlK4XqN_GYLuF9GZFPafLlr3dA@z> $info gcc To learn about gcc. $g++ -g -Wall -o foo foo.cc -g == enable debugging -Wall == enable warnings ... which you SHOULD heed. foo.cc == name of the file containing c++ code. -o foo == name of the produced executable. If you don't pass gcc this option, it will name the executable a.out . On Wed, 29 Dec 1999, berty wrote: > hi > > could someone please tell me the command which will enable me to compile a > program i have written in c++ using te gcc compiler. I assume it is > something along the lines of the -lm command which i believe includes the > maths library > > thanks in advance > >