Im trying to call a ASM function from c++ but I get the error unresolved external symbol referenced
my c++ code:
extern void foo();
int main() {
foo();
return 0;
}
my asm code:
section .text
global foo
foo:
ret
I tried adding a _ to the ASM function name and changing the complier to MASM but it still didn’t work. Im expecting for it to call the function.
New contributor
user24684540 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.