GCC编译时,我主要是以下这个指南在Windows上编译GCC:“反斜线不就行了最后一个字符”在Windows
http://www.aristeia.com/Misc/gcc4ForWindows.html
不同的是,我使用MSYS 1.10,并试图从SVN构建gcc中继。源码树在Linux上编译得很好,但是当我尝试在Windows上构建时,运行配置脚本时出现以下错误。我使用
<snip>
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
c:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
configure: creating ./config.status
config.status: creating Makefile
gawk: ./conf6456-2346/subs.awk:19: S["FLAGS_FOR_TARGET"]=" -L$$r/$(TARGET_SUBDIR
)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/ming
w/include -isystem $$s/winsup/w32api/include -"\
gawk: ./conf6456-2346/subs.awk:19:
^backslash not last character on
line
c:\MinGW\bin\sed.exe: couldn't write 38 items to stdout: No error
config.status: error: could not create Makefile
c:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
命令行是这样的:
../configure前缀= C:/ rosbe/i586的--build = mingw32的主机=的mingw32 --target =的mingw32 - -enable-languages = c,C++ --disable-win32-registry --enable-sjlj-exceptions --enable-threads = win32 --enable-checking = release
但他们没有gcc 4.6 – Raindog 2010-08-16 22:31:42
GCC 4.6未发布。无论如何,如果你想拥有一个最新的GCC,那么4.5或4.4就足够了。另一方面,如果你的目标是专门在MinGW上建立GCC中继,那么我的答案是没有用的。 – 2010-08-17 04:56:24