C/C++ Unusual Compiler Error (using Dev-C++ Mingw)

  • Thread starter Thread starter phyzmatix
  • Start date Start date
  • Tags Tags
    Compiler Error
AI Thread Summary
An unexpected error occurs when compiling and running a program in DevC++, specifically a circular dependency error related to the Makefile. The user has verified compiler settings and reinstalled both the IDE and compiler without success. They suspect an issue with the Makefile and inquire about rebuilding it. After deleting the Makefile and testing on a different machine, the same error persists, but compiling a standalone source file works. The user realizes that not saving the source file with a .cpp extension caused the Makefile to fail, leading to the circular dependency issue. They consider switching to a different IDE/compiler combination as a potential solution.
phyzmatix
Messages
313
Reaction score
0
I find myself with an unexpected error that I can't seem to resolve. When trying to compile and run even a simple program, I receive the following error (the directory path for the project file is C:\unisa\Assignments, the project is Assignment1 and source file is Question1):

mingw32-make.exe (in the "Line" columnn of compiler tab in DevC++ window) C:\unisa\Assignment1\mingw32-make.exe (in "File" column) Circular Question1 <- Question1.o dependency dropped (in "Message column)

next line:

C:\unisa\Assignment1\Makefile.win ('File" column) [Build Error] exe: *** [Question1] Error 1 ("Message" column)

I have double checked that my compiler settings are correct and have even uninstalled and re-installed both the IDE as well as the compiler, but to no avail.

Any ideas?
 
Technology news on Phys.org
It looks like there is an error in the Makefile = the equivalent of a project file
Is there an option to rebuild the makefile?
 
mgb_phys said:
It looks like there is an error in the Makefile = the equivalent of a project file
Is there an option to rebuild the makefile?

I'm not sure, but I have deleted the makefile to see if a new attempt at getting it to run works, but no luck. However, I'm on a different machine at the moment and thought I'd try the exact same code on a computer where the combination of Dev-C++ and Mingw has NEVER given me any problems and now I have the same issue (having said that, I've never tried creating projects on this machine, purely single source files).

If I simply use the option to open a new source file (independent of a project) everything works. As soon as I try to create a project, including the code in an underlying source file, then no go...

Perhaps I should just find myself another IDE/compiler combo?
 
Problem solved!

When creating the project, I made the mistake of not saving the source file with a .cpp extension, so make was looking for an extension and finding none, ended up in a loop.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top