Hello!
I am trying to compile a project to 32-bit. I get many compilation errors, like "invalid use of register, bad expression"... There is no assembler in my source code, so I suspect a conflict in identifiers, but I don't know which identifiers are problematic.
When I compile to 64-bit the problem doesn't happen.
Could someone take a look in my code, or explain a method to find what is wrong?
The code is here: project.zip
Regards.
Roland
Errors in asm: invalid use of register, bad expression...
-
- Posts: 993
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: Errors in asm: invalid use of register, bad expression...
I have no problem compiling. What version of the compiler are you using?
-
- Posts: 993
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Re: Errors in asm: invalid use of register, bad expression...
Thank you for your answer. Here is the version of my 32-bit compiler :Xusinboy Bekchanov wrote:I have no problem compiling. What version of the compiler are you using?
FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for linux-x86 (32bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
As I said, I can compile to 64-bit without problem.
Re: Errors in asm: invalid use of register, bad expression...
Hi Roland,
Change OFFSET by OFSET (or other name). That's all.
Change OFFSET by OFSET (or other name). That's all.
-
- Posts: 993
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Re: Errors in asm: invalid use of register, bad expression...
Hello. Yes, it solves the problem. Thank you.SARG wrote:Hi Roland,
Change OFFSET by OFSET (or other name). That's all.
Re: Errors in asm: invalid use of register, bad expression...
You're welcome.Roland Chastain wrote:Yes, it solves the problem. Thank you.
A hint in such case : compile with -RR (or R) so you can see the faulty asm line using the line number given by the assembler.
-
- Posts: 993
- Joined: Nov 24, 2011 19:49
- Location: France
- Contact:
Re: Errors in asm: invalid use of register, bad expression...
OK, I will try that next time.SARG wrote:A hint in such case : compile with -RR (or R) so you can see the faulty asm line using the line number given by the assembler.