Mail Archives: djgpp/2001/12/14/07:18:48
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 -