This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compiling c++ using gcc


g++ filename -o output_filename

where filename is your source code and output_filename is the name of
the program you want. I think you should spend some time reading the
manual.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]