Thread: Circular main <- main.o dependency dropped.

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Circular main <- main.o dependency dropped.

    What does this one error that I got mean?

    Circular main <- main.o dependency dropped.

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    596
    Please post the makefile.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    >> Spam much?

    How is that spam? I noticed that the veiw level was very low, and you can't rename the title of a thread once in place. So I thought putting the error as the title would get more views, thus giving me more a chance of getting a responce.


    >> Please post the makefile.

    I don't see how it would help. But I am the one asking...

    Code:
    # Project: Glut
    # Makefile created by Dev-C++ 4.9.9.2
    
    CPP  = g++.exe
    CC   = gcc.exe
    WINDRES = windres.exe
    RES  = 
    OBJ  = mainGlut.o camera.o vectors.o pool.o $(RES)
    LINKOBJ  = mainGlut.o camera.o vectors.o pool.o $(RES)
    LIBS =  -L"C:/Dev-Cpp/lib" -mwindows -lcomctl32 -lwinmm -lopengl32 -lglu32 -lgdi32 -lglut -lglut32 -lglaux -s   
    INCS =  -I"C:/Dev-Cpp/include" 
    CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
    BIN  = Glut.exe
    CXXFLAGS = $(CXXINCS)  
    CFLAGS = $(INCS)  
    RM = rm -f
    
    .PHONY: all all-before all-after clean clean-custom
    
    all: all-before Glut.exe all-after
    
    
    clean: clean-custom
    	${RM} $(OBJ) $(BIN)
    
    $(BIN): $(OBJ)
    	$(CPP) $(LINKOBJ) -o "Glut.exe" $(LIBS)
    
    mainGlut.o: mainGlut
    	$(CPP) -c mainGlut -o mainGlut.o $(CXXFLAGS)
    
    camera.o: camera.cpp
    	$(CPP) -c camera.cpp -o camera.o $(CXXFLAGS)
    
    vectors.o: vectors.cpp
    	$(CPP) -c vectors.cpp -o vectors.o $(CXXFLAGS)
    
    pool.o: pool.cpp
    	$(CPP) -c pool.cpp -o pool.o $(CXXFLAGS)

  5. #5
    Registered User
    Join Date
    Feb 2003
    Posts
    596
    It's a make error.

    According to gnu.org's make manual:

    `Circular xxx <- yyy dependency dropped.'
    This means that make detected a loop in the dependency graph: after tracing the dependency yyy of target xxx, and its dependencies, etc., one of them depended on xxx again.

    But I can't figure out from that file where the circular reference is.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help building/linking to static library
    By Kernel Sanders in forum C++ Programming
    Replies: 19
    Last Post: 08-17-2008, 04:35 PM
  2. Memory leaks problem in C -- Help please
    By Amely in forum C Programming
    Replies: 14
    Last Post: 05-21-2008, 11:16 AM
  3. A simple question about writing a Makefile
    By meili100 in forum C++ Programming
    Replies: 3
    Last Post: 04-29-2008, 08:07 PM
  4. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM
  5. int main (), main (), main (void), int main (void) HELP!!!
    By SmokingMonkey in forum C++ Programming
    Replies: 7
    Last Post: 05-31-2003, 09:46 PM