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

  • Context: C/C++ 
  • Thread starter Thread starter phyzmatix
  • Start date Start date
  • Tags Tags
    Compiler Error
Click For Summary

Discussion Overview

The discussion revolves around an unusual compiler error encountered while using Dev-C++ with the MinGW compiler. Participants explore the nature of the error related to Makefile dependencies and project settings, focusing on troubleshooting steps and potential solutions.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant reports a circular dependency error in the Makefile when attempting to compile a simple program.
  • Another participant suggests that there may be an error in the Makefile and inquires about the possibility of rebuilding it.
  • A participant mentions trying the same code on a different machine where the IDE/compiler combination has previously worked without issues, but encounters the same problem when creating a project.
  • It is noted that compiling a single source file works without issue, but creating a project leads to errors.
  • A later reply identifies that the problem was due to not saving the source file with a .cpp extension, which caused the Makefile to fail in locating the correct file type.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the nature of the error initially, with multiple hypotheses about the cause being discussed. However, one participant later resolves their issue by identifying a specific mistake related to file extensions.

Contextual Notes

The discussion highlights the importance of file extensions in project settings and the potential for errors when dependencies are not correctly defined in the Makefile. There is also mention of varying experiences across different machines, suggesting that environmental factors may influence the occurrence of the error.

Who May Find This Useful

Users of Dev-C++ and MinGW, particularly those encountering similar compiler errors or issues with project configurations, may find this discussion relevant.

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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
8K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K