delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/22/19:29:49

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Point make to gpp - how?
Date: Sat, 22 Jan 2000 23:25:35 +0000
Organization: Customer of Planet Online
Lines: 18
Message-ID: <clek8sge8mp6o3e6p8ve3j56nlg7rqu8fi@4ax.com>
References: <388a3373 DOT 9048641 AT news>
NNTP-Posting-Host: modem-5.manisyl.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 948583890 3033 62.136.77.133 (22 Jan 2000 23:31:30 GMT)
NNTP-Posting-Date: 22 Jan 2000 23:31:30 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

rslists AT home DOT com wrote:

> How can I get make.exe to use gpp.exe instead of gcc.exe for
> compiling?

I assume you are using make's built in rules and you are trying to
compile a C++ program.  If that is the case you need to set

CXX = gpp

If you are compiling to objects (.o) and then linking those seperately
then you also need to set

CC  = gpp

If you want to set compiler options use CXXFLAGS rather than CFLAGS

CXXFLAGS = -O2 -Wall

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019