jmeubank / tdm-gcc

TDM-GCC is a cleverly disguised GCC compiler for Windows!
https://jmeubank.github.io/tdm-gcc/
584 stars 49 forks source link

Error when executing on 32-bit Windows XP system. #21

Closed skylee03 closed 3 years ago

skylee03 commented 4 years ago

When I tried to compile a C++ program which includes merely a single-line code "int main() {}" with TDM64-GCC 9.2.0 on my 64-bit Windows 10 computer, it worked well. But on a 32-bit Windows XP system, it prompted the following error message:

C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/32/libstdc++.a: file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status

However, when I compile the same program with previous version of TDM64-GCC (for example, 4.9.2), it worked well on both 32-bit Windows XP and 64-bit Windows 10.

What should I do to make the TDM64-GCC 9.2.0 compiler work properly on a 32-bit Windows XP system?

jmeubank commented 3 years ago

It's hard to say, since you haven't provided the command line you're using.