Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* cxx compiler switch to comile .c files as .C files
@ 1995-07-25  4:00 Southwest Airlines
  1995-07-26  4:00 ` Tim Lucia
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Southwest Airlines @ 1995-07-25  4:00 UTC (permalink / raw)


Is there a compiler switch on the cxx compiler to force it to use the c++ 
compiler on a file with a .c extension?  It keeps invoking the c89 compiler.

Thanks

Scott Walters
Southwest Airlines
swalters@netcom.com




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

* Re: cxx compiler switch to comile .c files as .C files
  1995-07-25  4:00 cxx compiler switch to comile .c files as .C files Southwest Airlines
  1995-07-26  4:00 ` Tim Lucia
@ 1995-07-26  4:00 ` Dan Pop
  1995-07-26  4:00 ` Jussi Kukkonen
  2 siblings, 0 replies; 4+ messages in thread
From: Dan Pop @ 1995-07-26  4:00 UTC (permalink / raw)


In <swaltersDCA5t7.Gzw@netcom.com> swalters@netcom.com (Southwest Airlines) writes:

>Is there a compiler switch on the cxx compiler to force it to use the c++ 
>compiler on a file with a .c extension?  It keeps invoking the c89 compiler.

Is it that difficult to type "man cxx"?
Is it easier to post?

Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland



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

* Re: cxx compiler switch to comile .c files as .C files
  1995-07-25  4:00 cxx compiler switch to comile .c files as .C files Southwest Airlines
@ 1995-07-26  4:00 ` Tim Lucia
  1995-07-26  4:00 ` Dan Pop
  1995-07-26  4:00 ` Jussi Kukkonen
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Lucia @ 1995-07-26  4:00 UTC (permalink / raw)



In article <swaltersDCA5t7.Gzw@netcom.com>, swalters@netcom.com (Southwest Airlines) writes:
|>Is there a compiler switch on the cxx compiler to force it to use the c++ 
|>compiler on a file with a .c extension?  It keeps invoking the c89 compiler.
|>
|>Thanks
|>
|>Scott Walters
|>Southwest Airlines
|>swalters@netcom.com
|>
|>

From cxx(1) [that's a manual page]


  -x cxx	 Cause all subsequent file names to be compiled	as C++ source
		 files,	regardless of their suffixes.  This option applies to
		 all following file names up to	the next -x option, except
		 for files with	the .a or .o suffix.

  -x none	 Cause all subsequent file names to be treated according to
		 their file name suffixes.  This option	is the reverse of the
		 -x cxx	option.	 It applies to all following file names	until
		 the next -x option.

		 In the	following example, files one.cxx and two.c will	be
		 compiled as C++ source	files, and file	three.c	will compiled
		 as a C	source file:

		 cxx one.cxx -x	cxx two.c -x none three.c

		 The -x	none option is the default.

-- 
Timothy J. Lucia - DECladebug            Email:    mailto:lucia@zko.dec.com
Digital Equipment Corporation            Phone:           603.881.2615
110 Spitbrook Road ZKO2-3/K06            Fax:             603.881.0120
Nashua, NH  USA  03062-2698              I'd rather be bicycling.



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

* Re: cxx compiler switch to comile .c files as .C files
  1995-07-25  4:00 cxx compiler switch to comile .c files as .C files Southwest Airlines
  1995-07-26  4:00 ` Tim Lucia
  1995-07-26  4:00 ` Dan Pop
@ 1995-07-26  4:00 ` Jussi Kukkonen
  2 siblings, 0 replies; 4+ messages in thread
From: Jussi Kukkonen @ 1995-07-26  4:00 UTC (permalink / raw)
  To: swalters

RTFM:

  -x cxx         Cause all subsequent file names to be compiled as C++ source
                 files, regardless of their suffixes.  This option applies to
                 all following file names up to the next -x option.

-- 
        Jussi Kukkonen				Jussi.Kukkonen@dialogos.fi
	Ruusankatu 6 as. 29			Jussi.Kukkonen@hut.fi
	00250  HELSINKI
	FINLAND




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

end of thread, other threads:[~1995-07-26  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-25  4:00 cxx compiler switch to comile .c files as .C files Southwest Airlines
1995-07-26  4:00 ` Tim Lucia
1995-07-26  4:00 ` Dan Pop
1995-07-26  4:00 ` Jussi Kukkonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox