I posted following message after 1068471 message

This problem comes from handling "&" keyword improperly in
Makefile because the way to handle filename in linux and
windowz is different.

In my experience, the best way to eliminate the problem of
special character in Windowz is to use quotation mark on the
filename.

In the 743 in utils.pas file
{ GenMakePath: convert a filename to a format that can be
used by make }
function GenMakePath(FileName: String): String;
begin
Result:=StringReplace(Filename, '\', '/', [rfReplaceAll]);
// if Pos(' ', Filename)>0 then
Result := '"'+Result+'"';
end;

After commenting the line for "if Pos(...", all source filenames
and object filenames were created with quotation mark and I
can compile successfully.
====

I guess Makefiles generated from Dev-c++ are not handled properly about SPACE or some special characters in filename.

After forceing to put the quotation mark on file name, still some names don't have quotation mark.
Following Makefile was generated after commenting.
==

Project: Project1

Makefile created by Dev-C++ 4.9.9.1

CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = "ma&in.o" $(RES)
LINKOBJ = "ma&in.o" $(RES)
LIBS = -L"C:/Dev-Cpp/lib"
INCS = -I"C:/Dev-Cpp/include"
CXXINCS = -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"D:/vmware-share/dcWorld/src/loki/Reference" -I"D:/vmware-share/dcWorld/src/loki/tools/RegressionTest" -I"D:/vmware-share/dcWorld/src"
BIN = "Project1.exe"
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)

.PHONY: all all-before all-after clean clean-custom

all: all-before "Project1.exe" all-after

clean: clean-custom
rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "Project1.exe" $(LIBS)

"ma&in.o": ma&in.cpp
$(CPP) -c "ma&in.cpp" -o "ma&in.o" $(CXXFLAGS)
=====

The line, ["ma&in.o": ma&in.cpp ], doen't have quotation on ma&in.cpp name because this name comes from GenMakePath2 instead of GetMakePath.

I think that all filenames and paths in Makefile should surround by quotation mark.

I hope this information help your project.

Have a nice day.