Hi, I had a problem about Makefile when I compile my c++ files.
Please give me advice how to remove the circular dependency dropped error.
thanks
My makefile:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
all: conditional explicit2_type_conversion explicit_type_conversions implicit_type_conversions
conditional: conditional.cpp
g++ -g -o conditional conditional.cpp
explicit2_type_conversion: explicit2_type_conversion.cpp
g++ -g -o explicit2_type_conversion explicit2_type_conversion.cpp
explicit_type_conversions: explicit_type_conversions.cpp
g++ -g -o explicit_type_conversions explicit_type_conversions.cpp
implicit_type_conversions: implicit_type_conversions implicit_type_conversions.cpp
g++ -g -o implicit_type_conversions implicit_type_conversions.cpp
clean:
rm -f conditional explicit2_type_conversion explicit_type_conversions implicit_type_conversions
|
my error:
1 2 3 4 5 6
|
[gongzhen@gongzhen constructor]$ make
g++ -g -o conditional conditional.cpp
g++ -g -o explicit2_type_conversion explicit2_type_conversion.cpp
g++ -g -o explicit_type_conversions explicit_type_conversions.cpp
make: Circular implicit_type_conversions <- implicit_type_conversions dependency dropped.
g++ -g -o implicit_type_conversions implicit_type_conversions.cpp
|
Last edited on
Please give any advice.
Why there is a Circular ... dependency dropped happen?
Circular dependencies occur when you include File A in File B and at the same time include File B in File A.