title: Compile using makefile in Windows with MinGW
body: <p>I have a problem with the following makefile in Windows. Although it worked in Linux, I get an error now using MinGW in Windows.
  I checked the article on this page: <a href="https://stackoverflow.com/questions/14158931/compile-using-makefile-in-window">Compile using MakeFile in Window</a>, but I still have no success.</p>
  
  <pre><code>CC      = c++
  CFLAGS  = -Wall -g
  
  ODIR    = /OBJ
  CFILES  := $(wildcard SRC/*.cpp)
  OFILES  := $(addprefix OBJ/,$(notdir $(CFILES:.cpp=.o)))
  
  meshl:  $(OFILES)
      $(CC) $(CFLAGS) -o $@ $(OFILES)
  OBJ/%.o: SRC/%.cpp
      $(CC) $(CFLAGS) -c $&lt; -o $@
  
  clean:
      rm -f OBJ/*.o
  </code></pre>
  
  <p>When I try to compile it in the command prompt, the following message appears: </p>
  
  <pre><code>OBJ/mpoint.o: file not recognized: File format not recognized
  collect2.exe: error: ld returned 1 exit status
  makefile:9: recipe for target 'meshl' failed
  make: ***[meshl] Error 1
  </code></pre>
  
  <p>Thanks for your time and help!</p>