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:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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