Code::Blocks Forums

User forums => Help => Topic started by: deebeesp on April 01, 2024, 09:06:05 pm

Title: How to force MingW to use 32bit lib instead of 64bit libs
Post by: deebeesp on April 01, 2024, 09:06:05 pm
When trying to cross-compile for 32bit Windows on Linux using MingW I get the following error:

Code
/usr/bin/i686-w64-mingw32-ld: /usr/x86_64-w64-mingw32/lib/libmingw32.a: error adding symbols: file format not recognized

It's obvious that MingW is trying to 64 bit libs instead of 32 bit libs. It's a fairly straightforward issue but I have no idea how to fix. I already tried setting the search directories for the 32 bit lib folder but that didn't work. The -m32 flag also didn't quite help.

Any help appreciated.
Title: Re: How to force MingW to use 32bit lib instead of 64bit libs
Post by: stahta01 on April 02, 2024, 03:50:51 am
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Please post a full re-build log; and, maybe some will see a problem.

Tim S.