here is my assembly code. it's not the actual code, but it does not matter what the function is, i get the same error.
.model flat, c
.code
function proc
retn
function endp
end
i tried:
- typing "public function" after the "endp"
- making it an __stdcall
- changing the name. adding and removing
_
in multiple places
what i did:
- changed build configuration to include MASM files
- made sure the .asm file is not excluded from the build
i keep getting an error saying "unresolved external symbol".
thing is, it also seems to add a _
before the actual function name, which is why i tried changing things around and adding _
before the functions myself, but it did not work.
what can i do?
this is how i import it:
extern "C" unsigned int function();