Menu

#137 Project Won't Build With Makefile Open in Dev-C++ Editor

None
fixed
None
2014-10-10
2014-10-10
No

Version: 5.7.1 w TDD-GCC 4.8.1
OS version: Windows 8.1 64 bit
Error reported:

Makefile.win file not recognized: File format not recognized
collect2.exe [Error] ld returned 1 exit status

Affects: C/C++ Projects
Stack trace: None
Steps needed to reproduce the problem:

  • Open the Makefile.win in the Dev-C++ editor.
  • Attempt to build the project.

This is especially tricky since the Makefile now opens automatically when there's an error parsing it. If you resolve the original error but leave the Makefile open in Dev-C++, the project will continue to issue errors even if the Makefile.win is now valid syntactically.

Discussion

  • orwelldevcpp

    orwelldevcpp - 2014-10-10

    As of 5.8.0, the makefile is now recognised as a file that belongs to the project:

    function TMainForm.GetCompileTarget: TTarget;
    (...)
    
    // Treat makefiles as InProject files too
    if Assigned(fProject) and (e.InProject or (fProject.MakeFileName = e.FileName)) then begin
      Result := ctProject;
    end else begin
      Result := ctFile;
    end;
    
     

    Last edit: orwelldevcpp 2014-10-10
  • orwelldevcpp

    orwelldevcpp - 2014-10-10
    • status: open --> fixed
    • assigned_to: orwelldevcpp
    • Milestone: -->
     

Log in to post a comment.