The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: 2-Bit Chip on December 31, 2009, 02:14:24 AM

Title: EXTRN in Masm32
Post by: 2-Bit Chip on December 31, 2009, 02:14:24 AM
extrn ExitProcess

.code
push 0
call ExitProcess


How does this not work? It refuses to assemble even when I turn off linking (ML.exe /c /coff <file.asm>).
Title: Re: EXTRN in Masm32
Post by: sinsi on December 31, 2009, 02:19:07 AM
Maybe give it a type?
extrn ExitProcess:near
Title: Re: EXTRN in Masm32
Post by: 2-Bit Chip on December 31, 2009, 02:21:35 AM
Thank you. I was missing:
:PROC