Menu

Unknown Build Error

2009-03-22
2012-09-26
  • Michael Meusz

    Michael Meusz - 2009-03-22

    Hey, I am fairly new to Dev C++ and have been playing around with it trying to set up a class to solve Matrices. I have my code very minimalistic to ensure no stupid errors will occur. However, whenever I compile my cde I get a build error. Here is the error:

    Circular MatrixDriver <- MatrixDriver.o dependency dropped.
    [Build Error] [MatrixClass.exe] Error 1

    And I also go to check the Compile log and this is what it states:

    Compiler: Default compiler
    Building Makefile: "\Makefile.win"
    Executing make clean
    rm -f ../Lab1wClass/Matrix.o MatrixDriver.o MatrixClass.exe g++.exe -c ../Lab1wClass/Matrix.cpp -o ../Lab1wClass/Matrix.o -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" make.exe: Circular MatrixDriver <- MatrixDriver.o dependency dropped. g++.exe -c MatrixDriver -o MatrixDriver.o -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" g++.exe: MatrixDriver: linker input file unused because linking not done g++.exe ../Lab1wClass/Matrix.o MatrixDriver.o -o "MatrixClass.exe" -L"C:/Dev-Cpp/lib" g++.exe: MatrixDriver.o: No such file or directory make.exe:
    * [MatrixClass.exe] Error 1 Execution terminated

    I have ask a few good programmers who do not use Dev C++ and they where unsure and also in a hurry. I also took code that runs perfectly fine on Unix using g++ and to try and run it and recieve the same error. I am really unsure what this means and I would like to finish my project, and also solve this problem. Thank you!

     
    • cpns

      cpns - 2009-03-22

      You or something removed all the carriage retirns from teh log making it hard to read; it should look something like this:

      Compiler: Default compiler
      Building Makefile: "**\Makefile.win"
      Executing make clean

      rm -f ../Lab1wClass/Matrix.o MatrixDriver.o MatrixClass.exe

      g++.exe -c ../Lab1wClass/Matrix.cpp -o ../Lab1wClass/Matrix.o -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"

      make.exe: Circular MatrixDriver <- MatrixDriver.o dependency dropped.

      g++.exe -c MatrixDriver -o MatrixDriver.o -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"

      g++.exe: MatrixDriver: linker input file unused because linking not done

      g++.exe ../Lab1wClass/Matrix.o MatrixDriver.o -o "MatrixClass.exe" -L"C:/Dev-Cpp/lib"

      g++.exe: MatrixDriver.o: No such file or directory make.exe: *** [MatrixClass.exe] Error 1 Execution terminated

      > I also took code that runs perfectly fine on Unix using g++ and to try and run it and recieve the same error.

      This is a make file error so g++ may not be the issue. Dev-C++ generated a makefile for you with dependencies, so if you did not have full dependency generatiuon in the Unix build you may not have seen the error.

      A circular dependency is where say A.h includes B.h, and B.h includes A.h, possibly indirectly through nested includes. I have seen it occur through a bad or corrupted project however. I suggest that you create a new project from scratch.

      "*\Makefile.win" is not a valid path. Since one of the most common issues with Dev-C++ is the use of Windows paths that the nix derived make.exe baulks on it is unhelpful for you to hide this information is that is what you have done.

      The path ../Lab1wClass/ suggests that your project and your sources are not in the same folder. This should not be a problem, but until you have solved your problem you should probably keep things simple.

      In the end, if you need to get work done, and this problem is taking up time, do yourself a favour and get work done with a different tool. Think about it; why don't the "few good programmers" you know use Dev-C++? You don't owe any tool any loyalty, you just need to get stuff done, and Dev-C++ is by no means a productivity tool!

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.