compiling c++ using gcc
llewelly@198.dsl.xmission.com
llewelly@198.dsl.xmission.com
Wed Dec 29 14:14:00 GMT 1999
$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
>
>
More information about the Gcc-help
mailing list