そのため、Windows で msys と tdm-gcc を使用して既存の C++ プロジェクトをコンパイルしようとしています。インストーラーを介して tdm-gcc (最新バージョン) をインストールし、MinGW/msys/1.0/etc/fstab を編集して tdm-gcc インストールをマウント場所として指定し、msys を実行して configure スクリプトを呼び出すことで、これを成功させました。作る。ただし、このプロジェクトでは、バイナリ互換性のために古いバージョンの tdm-gcc (4.6.1-tdm64-1) を使用する必要があります。そこで、tdm-gcc sourceforge サイトから必要なパッケージ (gcc コア、gcc c++、binutils、mingw64-runtime、mingw32-make、libintl、libiconv、readme で 4.6.1 で使用するように指示されているすべてのバージョン) をインストールし、抽出しました。新しいディレクトリに移動し、その場所を指すように fstab を編集しました。configure の実行中に、次のエラーが表示されます: C でコンパイルされたプログラムを実行できません。構成ファイルは次のとおりです。
[omitted]
configure:3436: $? = 0
configure:3425: gcc -v >&5
Using built-in specs.
COLLECT_GCC=c:\TDM-GCC-4.6.1-64\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/tdm-gcc-4.6.1-64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.1/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-4.6.1/configure --build=x86_64-w64-mingw32 --enable- targets=all --enable-languages=c,c++,fortran,objc,obj-c++ --enable-libgomp --enable-lto --enable-libstdcxx-debug --enable-version-specific-runtime-libs --enable-fully-dynamic-string --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --prefix=/mingw64tdm --with-local-prefix=/mingw64tdm --with-pkgversion=tdm64-1 --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.6.1 (tdm64-1)
configure:3436: $? = 0
configure:3425: gcc -V >&5
gcc.exe: error: unrecognized option '-V'
gcc.exe: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3425: gcc -qversion >&5
gcc.exe: error: unrecognized option '-qversion'
gcc.exe: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3456: checking whether the C compiler works
configure:3478: gcc conftest.c >&5
configure:3482: $? = 0
configure:3530: result: yes
configure:3533: checking for C compiler default output file name
configure:3535: result: a.exe
configure:3541: checking for suffix of executables
configure:3548: gcc -o conftest.exe conftest.c >&5
configure:3552: $? = 0
configure:3574: result: .exe
configure:3596: checking whether we are cross compiling
configure:3604: gcc -o conftest.exe conftest.c >&5
configure:3608: $? = 0
configure:3615: ./conftest.exe
./configure: line 3617: ./conftest.exe: Bad file number
configure:3619: $? = 126
configure:3626: error: in `/c/jagswm':
configure:3628: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
[omitted]
tdm-gcc bin を自分のパスに追加しようとしましたが、fstab が設定されているかどうかは問題ではないと思います。どんなアドバイスでも大歓迎です、ありがとう。