[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
False circular dependencies
From: |
Miguel Nicolau |
Subject: |
False circular dependencies |
Date: |
Wed, 9 Apr 2003 18:00:59 +0100 (IST) |
Hello there,
I have this strange problem with Make (tried both 3.79.1 and 3.80). I use
include files without an extension, i.e. the "Genotype.cpp" file uses an
include file called "Genotype". Make seems to get confused with these, and
treats the symbols "Genotype.o" and "Genotype" as being the same.
My Makefile is:
main: main.o Genotype.o
g++ -Wall -o main Genotype.o main.o
main.o: main.cpp includes definitions
g++ -Wall -c main.cpp -o main.o
Genotype.o: Genotype.cpp Genotype includes definitions
g++ -Wall -c Genotype.cpp -o Genotype.o
All these files exist. When I run make, I get the following:
g++ -Wall -c main.cpp -o main.o
make: Circular Genotype <- Genotype.o dependency dropped.
g++ -Wall -c Genotype.cpp -o Genotype.o
g++ -Wall -o main Genotype.o main.o
The compilation is successful, however it seems like a bug to me. I am
using Mandrake 8.1, on a P-IV processor.
Please let me know if this is an error of my part, or if it is a bug (and
if so, do you expect it to be corrected anytime soon).
Thank you very much!
Miguel
- False circular dependencies,
Miguel Nicolau <=