How do I fix error unreolved externals in masm x86

Viewed 56

I just want to move and add a few values but this error popped up the exact error is: error LNK2001: unresolved external symbol _ExitProcess@4. fatal error LNK1120: 1 unresolved externals

.386
.model flat, stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
.code 
main PROC 
    mov eax, 5
    add eax, 6

    INVOKE ExitProcess,0
main ENDP
end main
1 Answers

I think I found the answer it was because I didn't include kernel32.lib

Related