delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/08/23:41:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 08 Apr 2005 20:39:06 -0700
From: "Larry" <larry AT eBizCreators DOT com>
Subject: Re: Make, TMP=tmpnam => coredump
To: <cygwin AT cygwin DOT com>
Message-id: <PDEBLOPEKAOKEBIONCMIAEHPFAAA.larry@eBizCreators.com>
MIME-version: 1.0

Brian wrote:

> Anyway, assuming you're at the cygwin bash prompt, try the following

> $ make -v
> GNU Make 3.80
> Copyright (C) 2002  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.

> $ type make
> make is hashed (/usr/bin/make)

> $ type gcc
> gcc is hashed (/usr/bin/gcc)



I get the exact same results when I run those commands.

Perhaps I had an error in my Makefile. Can you please try the following 
Makefile that still generates the same error for me?

---------------------
TMP=tmpnam
PROGRAM=program

cc = g++ -v
CFLAGS = -ggdb
LDFLAGS=-lm

ALL= $(TMP) $(PROGRAM)

all: $(ALL)

---------------------

> Also, if you just want to work around the error, try changing the
> Makefiles in your book to not use TMP as a variable name.  You don't
> want to use that under Windows... 

Right. I guess I was just curious why I was having this collision.

Thanks again.

Larry

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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