# Mingw 32 bit problem in latest

**URL:** <https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351>\
**Category:** Windows\
**Created:** [August 12, 2014, 5:36am UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351 "2014-08-12T05:36:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ronaaron/32/535_2.png) [@ronaaron](https://forum.juce.com/u/ronaaron)\
**Post date:** [August 12, 2014, 5:36am UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/1 "2014-08-12T05:36:49Z")

</div>

I can compile the JUCE 3.0.7 with mingw 64 bit (as long as I don't include the video module, as mentioned in another post).

But using 32-bit I'm having some issues.

First, I had to modify the "juce\_BasicNativeHeaders.h" to have:

```
 #if JUCE_MINGW
  #define _WIN32_WINNT 0x0501
    #undef _NO_OLDNAMES
    #undef __STRICT_ANSI__
    #include <stdlib.h>
    #include <stdint.h>
    #include <string.h>
#else
```

Now things compile, except for "juce\_data\_structures.cpp", which complains about a lot of things it shouldn't.

Seems that it does not include the&nbsp;juce\_BasicNativeHeaders.h ...

Is there a better place to make my header-include change?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [August 12, 2014, 10:40am UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/2 "2014-08-12T10:40:33Z")

</div>

I don't have a 64-bit version to try, but the 32-bit version still works, so I'd need more info about why you're suggesting those additions before I could consider them.

Is it straightforward to install a 64-bit mingw? e.g. with code::blocks? If it's not a total nightmare then I'll give it a try...

---

<div class="post-metadata">

**Author:** ![ronaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ronaaron/32/535_2.png) [@ronaaron](https://forum.juce.com/u/ronaaron)\
**Post date:** [August 12, 2014, 11:44am UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/3 "2014-08-12T11:44:42Z")

</div>

I don't know anything about code::blocks; I've been using the MXE ports of mingw (32 and 64), on Linux.

So far, the only platform for which everything works exactly for me is Linux :(

You are developing on OS/X, I guess?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [August 12, 2014, 12:19pm UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/4 "2014-08-12T12:19:31Z")

</div>

Wow, you're expecting a modified version of mingw to produce trustworthy Windows binaries when you're not even running it on Windows..!? Good luck with that!

---

<div class="post-metadata">

**Author:** ![ronaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ronaaron/32/535_2.png) [@ronaaron](https://forum.juce.com/u/ronaaron)\
**Post date:** [August 12, 2014, 12:42pm UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/5 "2014-08-12T12:42:27Z")

</div>

Well, yes; I've had no problems with it before.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [August 12, 2014, 12:48pm UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/6 "2014-08-12T12:48:06Z")

</div>

Well, I don't know whether this is just a hobby thing or whether you're planning on releasing these builds, but you're a braver man than I am if you're releasing exes that were built like that!

---

<div class="post-metadata">

**Author:** ![ronaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ronaaron/32/535_2.png) [@ronaaron](https://forum.juce.com/u/ronaaron)\
**Post date:** [August 12, 2014, 5:11pm UTC](https://forum.juce.com/t/mingw-32-bit-problem-in-latest/13351/7 "2014-08-12T17:11:21Z")

</div>

These are intended to be released, it's not a hobby.

I did manage to get JUCE compiled w/ my mingw-32 on Linux, and the exe tests fine and the executed programs even look exactly&nbsp;the same on Linux and Win32... which is rather the point.

The reason I am not using MSVC is twofold:

First, I am really, really keen on using the same toolset on all platforms, as far as possible. &nbsp;I've done a lot of work with the mingw toolchain, and found them quite reliable. &nbsp;So now I've got Linux, Windows 32-bit and Android all working just fine w/ gcc. &nbsp;There's some kind of problem w/ OS/X, which I've yet to figure out.

Second, I the build tools on Windows are (really) bad, and not conducive to batch building. &nbsp;

I guess a third reason is I'm not interested in paying MS for a properly supported version of MSVC...
