I'm trying to integrate some opensource code that's using inline assembly into my application. Compiling throws C2415 improper operand type, and I can't find any information on what might be wrong and how to fix it.
The original application that the code is from came compiled alongside source code and runs fine, though I don't know what compiler was used.
Code excerpt:
__asm {
push rax
push rbx
push rcx
push rdx
push rdi
lea rdi, variable
...
}
The error occurs on LEA command, variable is char[100]