Yes the executable is 64 bit. I've had a few attempts at creating a 32 bit version but I get the same error no matter what I try. I've tried compiling a 32 bit version on both Windows XP (32 bit) and Windows 7 (64 bit) using QB64 versions 1.2, 1.3 and 1.4 and had no luck.
I'm very sorry but it doesn't look like I can make you a 32 bit build which is a shame :(
I was curious about why this code wouldn't compile in 32-bit, while it works in 64-bit versions, so I downloaded the source and took a few moments and looked at it. The issue is rather glaring, once one looks for just a bit:
IF temp58 = 1 THEN _FREEIMAGE pocketsprite1
IF temp58 = 2 THEN _FREEIMAGE pocketsprite2
IF temp58 = 3 THEN _FREEIMAGE pocketsprite3
IF temp58 = 4 THEN _FREEIMAGE pocketsprite4
IF temp58 = 5 THEN _FREEIMAGE pocketsprite5
IF temp58 = 6 THEN _FREEIMAGE pocketsprite6
IF temp58 = 7 THEN _FREEIMAGE pocketsprite7
IF temp58 = 8 THEN _FREEIMAGE pocketsprite8
IF temp58 = 9 THEN _FREEIMAGE pocketsprite9
The source is copy/paste code with a lot of redundancy in it, and each of these lines end up translating into multiple lines of c-code... The end result ends up simply giving us more lines than what 32-bit cpp will work with.
If you want the code to work on 32-bit systems, I'd suggest that you swap over to array usage rather than copy/paste code.
Instead of a hundred lines of IF statements, all you'd need is one: IF temp58 <> 0 THEN _FREEIMAGE pocketsprite(temp58)