Hello James
I update MingW. Now I'm able to build simutrans experimental, but Makefile need an update, James could you insert the line for me?:
CFLAGS += -std=gnu++11
I insert CFLAGS between
LIBS += -lmingw32
and
endif
in the block:
# BeOS (obsolete)
ifeq ($(OSTYPE),beos)
LIBS += -lnet
else
ifneq ($(findstring $(OSTYPE), cygwin mingw),)
ifeq ($(OSTYPE),cygwin)
CFLAGS += -I/usr/include/mingw -mwin32
else
ifeq ($(OSTYPE),mingw)
CFLAGS += -DPNG_STATIC -DZLIB_STATIC
LDFLAGS += -static-libgcc -static-libstdc++ -Wl,--large-address-aware
LIBS += -lmingw32
CFLAGS += -std=gnu++11
endif
endif
SOURCES += simsys_w32_png.cc
CFLAGS += -DNOMINMAX -DWIN32_LEAN_AND_MEAN -DWINVER=0x0501 -D_WIN32_IE=0x0500
LIBS += -lgdi32 -lwinmm -lws2_32 -limm32
# Disable the console on Windows unless WIN32_CONSOLE is set or graphics are disabled
ifneq ($(WIN32_CONSOLE),)
LDFLAGS += -mconsole
Thanks.
I attach the makefile I'm using, the difference is only line CFLAGS += -std=gnu++11
Giuseppe