Build 32bit using tdm64-gcc-5.1.0-2

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Build 32bit using tdm64-gcc-5.1.0-2

Post by BobsTheDude » Fri Jul 19, 2019 11:59 am

I am using tdm64-gcc-5.1.0-2, but can I build wxWidgets in 32bit using this version of tdm64-gcc-5.1.0-2, if so how? Or do I need to scrap this version and just use the 32bit version of tdm?

This is for Windows 10.

Thanks

User avatar
doublemax
Moderator
Moderator
Posts: 13993
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Build 32bit using tdm64-gcc-5.1.0-2

Post by doublemax » Sat Jul 20, 2019 2:43 pm

According to https://stackoverflow.com/questions/196 ... -mingw-w64 it should be possible by adding "-m32" or "-m64" to the compiler command line (set with CXXFLAGS) if the compiler is build as "multilib".

However, i tested with the MinGW from https://sourceforge.net/projects/mingw- ... -with-ada/ and didn't get it to work.

So maybe it's just easier to install the 32bit compiler if you only don't need to support 32 and 64bit.
Use the source, Luke!

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Re: Build 32bit using tdm64-gcc-5.1.0-2

Post by BobsTheDude » Sat Jul 20, 2019 4:45 pm

Thanks doublemax, I just installed the 32-bit version and left the 64-bit in place in case I want to use in the future.

Post Reply