Sorry to annoy everyone again, but I am still desperately trying to be able to use make-3-80 or higher under msys/mingw, and my deadlines are now quickly approaching.
Thinking that it might be due to some slight differences between the 'regular' versions of make and their 'mingw/msys distribution', I did download

After compilation (using Makefile.mingw) and execution on my project, I still get exactly the same problem.

Anyone has something to advice me? I am available to conduct any test, hopefully this might also be helpful to the community, but I just do not know what to try next...
Thanks,
Xavier

Xavier Marichal wrote:
Greg,
Examine the actual 'sed' command that gets executed. Perhaps
some portion of it, for instance
/$(OBJECT_DIR_FOR_SED) gets expanded by the MSYS shell to something like '/C:\foo\bar'. Actually, you were right: there weird C; that appear with another version of make than the msys intergated one. So, my actual rule (mofidied for complete trace and verbose) is:$(OBJECT_DIR)%$(DBG_SUFFIX)$(DEP_EXT) : $(FILES_PATH)%$(SRC_EXT)
$(SHELL) -ec '$(CXX) -MM $(FINAL_CPPFLAGS)$(CXXINCLDIRS) $< | sed '\''s/$$*$$\.o[ :]*/$(shell echo $(OBJECT_DIR) | sed 's/\//\\\//g'))\1$(DBG_SUFFIX).o $(subst /,\/,$@) : /g'\'' > $@' With make3.79 (msys-1.1.10 default), it transforms into: /bin/sh.exe -ec 'g++ -MM -DWINDOWS -Ic:/mingw/local/include/gtkmm-2.4 -Ic:/mingw/local/lib/gtkmm-2.4/include -Ic:/mingw/local/include/glibmm-2.4 -Ic:/mingw/local/lib/glibmm-2.4/include -Ic:/mingw/local/include/gdkmm-2.4 -Ic:/mingw/local/lib/gdkmm-2.4/include -Ic:/mingw/local/include/pangomm-1.4 -Ic:/mingw/local/include/atkmm-1.6 -Ic:/mingw/local/include/gtk-2.0 -Ic:/mingw/local/include/sigc++-2.0 -Ic:/mingw/local/lib/sigc++-2.0/include -Ic:/mingw/local/include/glib-2.0 -Ic:/mingw/local/lib/glib-2.0/include -Ic:/mingw/local/lib/gtk-2.0/include -Ic:/mingw/local/include/pango-1.0 -Ic:/mingw/local/include/atk-1.0 -I/usr/local/include/SDL -Dmain=SDL_main -I/usr/local/include/freetype2 -I/usr/local/include -D_REENTRANT -Ic:/mingw/local/include/gnet-2.0 -Ic:/mingw/local/lib/gnet-2.0/include -Ic:/mingw/local/include/glib-2.0 -Ic:/mingw/local/lib/glib-2.0/include -DALTER_MMX -DALTER_SSE2 -D_REENTRANT -D_GNU_SOURCE -mthreads -mms-bitfields -DALTER_MODULE=AlterHasp -Isrc/ -Isrc/common/ -I/usr/local/xerces-c/include -I/usr/local/include/portaudio -I/usr/local/include/newmat -I/usr/local/include src/AlterHasp/hasptime.cpp | sed '\''s/$$hasptime$$\.o[ :]*/objects\/AlterHasp_)\1.o objects\/AlterHasp_hasptime.d : /g'\'' > objects/AlterHasp_hasptime.d' But with gnumake.exe (native compil of make-3.81beta4) or with mingw32-make (version 3.80, it becomes: C:/msys/bin/sh.exe -ec 'g++ -MM -DWINDOWS -Ic:\mingw\local\include\gtkmm-2.4 -Ic:\mingw\local\lib\gtkmm-2.4\include -Ic:\mingw\local\include\glibmm-2.4 -Ic:\mingw\local\lib\glibmm-2.4\include -Ic:\mingw\local\include\gdkmm-2.4 -Ic:\mingw\local\lib\gdkmm-2.4\include -Ic:\mingw\local\include\pangomm-1.4 -Ic:\mingw\local\include\atkmm-1.6 -Ic:\mingw\local\include\gtk-2.0 -Ic:\mingw\local\include\sigc++-2.0 -Ic:\mingw\local\lib\sigc++-2.0\include -Ic:\mingw\local\include\glib-2.0 -Ic:\mingw\local\lib\glib-2.0\include -Ic:\mingw\local\lib\gtk-2.0\include -Ic:\mingw\local\include\pango-1.0 -Ic:\mingw\local\include\atk-1.0 -I\usr\local\include\SDL -Dmain=SDL_main -I\usr\local\include\freetype2 -I\usr\local\include -D_REENTRANT -Ic;c:\mingw\local\include\gnet-2.0 -Ic;c:\mingw\local\lib\gnet-2.0\include -Ic;c:\mingw\local\include\glib-2.0 -Ic;c:\mingw\local\lib\glib-2.0\include -DALTER_MMX -DALTER_SSE2 -D_REENTRANT -D_GNU_SOURCE -mthreads -mms-bitfields -DALTER_MODULE=AlterHasp -Isrc/ -Isrc/common/ -I/usr/local/xerces-c/include -I/usr/local/include/portaudio -I/usr/local/include/newmat -I/usr/local/include src/AlterHasp/hasptime.cpp | sed '\''s/$$hasptime$$\.o[ :]*/)\1.o objects\/AlterHasp_hasptime.d : /g'\'' > objects/AlterHasp_hasptime.d' So, a series of include comes with a -Ic;c:\... instead of -Ix:\... Obviously, sed does not like the semi-colon! Yet, these includes are the results of these two intermediate commands: GNET_CFLAGS :=$(shell pkg-config gnet-2.0 --cflags)
CPPFLAGS += $(GNET_CFLAGS) But, it I execute the pkg-config in msys, everything goes right: marichal@XM-LAPTOP ~/af$ pkg-config gnet-2.0 --cflags
-D_REENTRANT -Ic:/mingw/local/include/gnet-2.0 -Ic:/mingw/local/lib/gnet-2.0/include -Ic:/mingw/local/include/glib-2.0 -Ic:/mingw/local/lib/glib-2.0/include

So, again, isn't it a problem of bad integration (I mean dialog) of these makefiles w/r to msys?