PDA

Click to See Complete Forum and Search --> : Tlink can't find externs


Cahlel
Feb 5th, 2001, 09:47 AM
I tried to compile a REALLY simple program for windows
in assembly (just displays a messagebox), but tlink and
tlink 32 can't find the externs, here's the code


.386
locals
jumps
.model flat,STDCALL

; All APIs have to be defined before being called
include windows.inc
extrn GetModuleHandleA:Proc
extrn MessageBoxA:Proc
extrn ExitProcess:Proc

(just the beginning)

Here's the errors:
Turbo Link Version 1.6.71.0 Copyright (c) 1993,1996 Borland International
Error: Unresolved external 'GETMODULEHANDLEA' referenced from module msgbox.asm
Error: Unresolved external 'MESSAGEBOXA' referenced from module msgbox.asm
Error: Unresolved external 'EXITPROCESS' referenced from module msgbox.asm