public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compiling c++ using gcc
@ 1999-12-29 14:07 berty
  1999-12-29 14:14 ` llewelly
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: berty @ 1999-12-29 14:07 UTC (permalink / raw)
  To: help-gcc

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  1999-12-29 14:07 compiling c++ using gcc berty
@ 1999-12-29 14:14 ` llewelly
  1999-12-31 22:24   ` llewelly
  1999-12-30 15:00 ` Rick Dearman
  1999-12-31 22:24 ` berty
  2 siblings, 1 reply; 8+ messages in thread
From: llewelly @ 1999-12-29 14:14 UTC (permalink / raw)
  To: berty; +Cc: help-gcc

$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
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  1999-12-29 14:07 compiling c++ using gcc berty
  1999-12-29 14:14 ` llewelly
@ 1999-12-30 15:00 ` Rick Dearman
  1999-12-31 22:24   ` Rick Dearman
  2000-01-02 17:12   ` Thomas Lionel SMETS
  1999-12-31 22:24 ` berty
  2 siblings, 2 replies; 8+ messages in thread
From: Rick Dearman @ 1999-12-30 15:00 UTC (permalink / raw)
  To: help-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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  1999-12-30 15:00 ` Rick Dearman
@ 1999-12-31 22:24   ` Rick Dearman
  2000-01-02 17:12   ` Thomas Lionel SMETS
  1 sibling, 0 replies; 8+ messages in thread
From: Rick Dearman @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* compiling c++ using gcc
  1999-12-29 14:07 compiling c++ using gcc berty
  1999-12-29 14:14 ` llewelly
  1999-12-30 15:00 ` Rick Dearman
@ 1999-12-31 22:24 ` berty
  2 siblings, 0 replies; 8+ messages in thread
From: berty @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-gcc

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  1999-12-29 14:14 ` llewelly
@ 1999-12-31 22:24   ` llewelly
  0 siblings, 0 replies; 8+ messages in thread
From: llewelly @ 1999-12-31 22:24 UTC (permalink / raw)
  To: berty; +Cc: help-gcc

$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
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  1999-12-30 15:00 ` Rick Dearman
  1999-12-31 22:24   ` Rick Dearman
@ 2000-01-02 17:12   ` Thomas Lionel SMETS
  2000-04-01  0:00     ` Thomas Lionel SMETS
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Lionel SMETS @ 2000-01-02 17:12 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

Rick Dearman wrote:

> g++ filename -o output_filename
>

Right on Linux boxes
The GCC compiler on the GNU tools for DOS accepts only GCC.
The difference is made upon the file extension !




>
> 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

--

======================================
               150 ANS
         et on sèmera encore !
=====================================

Thomas SMETS
Ets GONTHIER s.a. - n.v.
rue de Leumont 1A
4520 Wanze (HUY)
Belgique
Tel : +32 (0)85 24.15.10. central
      +32 (0)85 24.15.04. direct
Fax : +32 (0)85 23.61.64.
mail : thomas.smets@gonthier-be.com (professionnel)
       tsmets@altern.org (privé)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: compiling c++ using gcc
  2000-01-02 17:12   ` Thomas Lionel SMETS
@ 2000-04-01  0:00     ` Thomas Lionel SMETS
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Lionel SMETS @ 2000-04-01  0:00 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

Rick Dearman wrote:

> g++ filename -o output_filename
>

Right on Linux boxes
The GCC compiler on the GNU tools for DOS accepts only GCC.
The difference is made upon the file extension !




>
> 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

--

======================================
               150 ANS
         et on sèmera encore !
=====================================

Thomas SMETS
Ets GONTHIER s.a. - n.v.
rue de Leumont 1A
4520 Wanze (HUY)
Belgique
Tel : +32 (0)85 24.15.10. central
      +32 (0)85 24.15.04. direct
Fax : +32 (0)85 23.61.64.
mail : thomas.smets@gonthier-be.com (professionnel)
       tsmets@altern.org (privé)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-29 14:07 compiling c++ using gcc berty
1999-12-29 14:14 ` llewelly
1999-12-31 22:24   ` llewelly
1999-12-30 15:00 ` Rick Dearman
1999-12-31 22:24   ` Rick Dearman
2000-01-02 17:12   ` Thomas Lionel SMETS
2000-04-01  0:00     ` Thomas Lionel SMETS
1999-12-31 22:24 ` berty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).