一、mingw安装配置
1.
C:\MinGW\msys\1.0\etc\fstab
复制fstab.sample内容
添加一行
C:/MinGW/mingw
2.
C:\MinGW\msys\1.0\etc\profile
->
if [ $MSYSTEM == MINGW32 ]; then
export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
else
export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
fi
之前添加
PATH=
INCLUDE=
LIB=
二、编译onscripter-en
SDLOTHERCONFIG=--disable-assembly ./configure --std=gnu++98 --no-werror --with-internal-libs && make VERBOSE=true CSTD=-std=gnu99
注意,为了防止出现错误_wfopen、off64_t无定义错误,需要把-std=c++98换成--std=gnu++98,把-std=c99换成-std=gnu99,以便把__STRICT_ANSI__的定义取消(相当于-U__STRICT_ANSI__)