🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Larry Cipriani Sat, 15 Feb 1986 01:13
Make and C++
#11
Author: Larry Cipriani
Date: Sat, 15 Feb 1986 01:13
8 lines
754 bytes
How do you tell make to use the C++ translator instead
of the C compiler if both C and C++ programs end in
the same suffix (.c).  I wouldn't want to run my
C programs through the C++ translator unless it produced
identical results.
-- 

Larry Cipriani	cbsck!lvc
Re: Make and C++
#19
Author: Ken Latham
Date: Thu, 20 Feb 1986 06:45
25 lines
1300 bytes
> How do you tell make to use the C++ translator instead
> of the C compiler if both C and C++ programs end in
> the same suffix (.c).  I wouldn't want to run my
> C programs through the C++ translator unless it produced
> identical results.
> -- 
> 
> Larry Cipriani	cbsck!lvc


	If you look at the internal rules of make, ( you know those
strange looking rules like .c~.a :-) )  They all use ${CC} as the name of
the processor for any  .c  files.  All you have to do is set.

CC=C++; export CC

before you make and Voila!

			Ken Latham ( a MAKE artist )

			AT&T-IS (via AGS Inc.), Orlando , FL
			uucp: ihnp4!bsdpkh!latham

P.S.
    For more extraordinary circumstances you could replace CC by a shell.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads