www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/14/07:18:48

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Makefile
Date: 14 Dec 2001 12:01:48 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 33
Message-ID: <9vcpnc$n4s$1@nets3.rz.RWTH-Aachen.DE>
References: <9varlh$fdl$1 AT sun-cc204 DOT lut DOT ac DOT uk> <200112131839 DOT fBDId5u07758 AT envy DOT delorie DOT com> <011801c18420$057729c0$2cdfe783 AT lboro DOT ac DOT uk>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1008331308 23708 137.226.32.75 (14 Dec 2001 12:01:48 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 14 Dec 2001 12:01:48 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Shabir Govani <S DOT Govani-99 AT student DOT lboro DOT ac DOT uk> wrote:

> the makefile I have is very complicated if I wanted to add
> something say a file file1.cpp what do I add ?

It's not *what* to add but *where* that makes the real difference.
But without seeing that "very complicated" makefile you have, it's
close to impossible for anyone out here to find the correct position.

In other words: you have to provide more details.

> changes doesn't affect the make.exe it still gives the same output i.e.
> error undefined referencene to main.

That error is not given by make, but rather the linker (which is
invoked by GCC, which in turn was invoked by Make, because your
Makefile said so).

> since file1.cpp I want to make it to main and say file.c as a link
> file.

Sorry, but that sentence is utterly incomprehendible. Please try to
re-phrase it.

Or maybe just start reading the documentation of Make, to learn from
square one how a Makefile works:

	info make

(Install txi40b.zip if you don't have 'info').
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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