i get the following error message compiling several different projects
Error: Assembler
PureBasic.asm [7290]:
mov esi,qword [rsp+PS1222+0]
error: operand sizes do not match.
i tried to isolate the error but using /COMMENTED doesn't give me an output .asm file to check for.
this happens while running 5.70lts on previous versions it all compiles fine
could it be related to unicode switch force?
if i can figure out what causes it maybe i could isolate the part of the code right now they are both big projects and i cant figure it out i would like to port them to newer version of pb.
thanks!
error: operand sizes do not match.
-
- Enthusiast
- Posts: 480
- Joined: Thu Jul 27, 2006 4:06 am
error: operand sizes do not match.
should I bash the keyboard and give up?
Re: error: operand sizes do not match.
Try updating to 5.71 LTS
Windows 11, Manjaro, Raspberry Pi OS
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: error: operand sizes do not match.
If Idle's (very good) suggestion does not work for you, try compiling successfully with an earlier version using /commented and then you can look for the barfed code and perhaps isolate the command or function it's related to. It's a place to start at least.
BERESHEIT
-
- Enthusiast
- Posts: 480
- Joined: Thu Jul 27, 2006 4:06 am
Re: error: operand sizes do not match.
ill be trying both right now thank you
should I bash the keyboard and give up?
-
- Enthusiast
- Posts: 480
- Joined: Thu Jul 27, 2006 4:06 am
Re: error: operand sizes do not match.
tried all versions (down to 5.00) and i still get the same error on x64 but it all compiles on x86 any ideas? i had to heavily modify the code so it would compile on the older versions but it always throws the same error if the compiler is x64
should I bash the keyboard and give up?
Re: error: operand sizes do not match.
do you have inline asm in your code, that doesn't look like PB generated Assembly where does PS1222 come from?
if it's x64 it should read mov rsi, [rsp+PS1222+0]
if it's x64 it should read mov rsi, [rsp+PS1222+0]
mov esi,qword [rsp+PS1222+0]
Windows 11, Manjaro, Raspberry Pi OS