Hi all. I am trying to generate an .exe with FASM+ALINK. The Code:
FORMAT MS COFF
PUBLIC _start
EXTRN MessageBoxA
EXTRN ExitProcess
MB_OK = 00000000h
MB_ICONINFORMATION = 00000040h
SECTION '.text' code readable executable
_start:
PUSH MB_OK+MB_ICONINFORMATION
PUSH title
PUSH msg
PUSH 0
CALL MessageBoxA
PUSH 0
CALL ExitProcess
SECTION '.data' data readable writeable
title db 'hello...',0
msg db 'world',0
Command line:
fasm helloworld.asm
alink -oPE helloworld.obj KERNEL32.lib USER32.lib
The output from ALINK:
Loading file helloworld.obj
Loading file KERNEL32.lib
1463 symbols
Loaded first linker member
Loading file USER32.lib
1235 symbols
Loaded first linker member
matched Externs
matched ComDefs
Unresolved external MessageBoxA
Unresolved external ExitProcess
This is using the MASM .lib files. But I have tried the .lib files with undecorated functions generated by DLL2LIB and in that case i got another error:
Loading file helloworld.obj
Loading file KERNEL32.lib
1887 symbols
Loaded first linker member
Loading file USER32.lib
1467 symbols
Loaded first linker member
Loading module user32.DLL/
Invalid Import entry
Please note that i had success with LINK/POLINK, but i would like to know how to use another linkers. Some suggestion for mi problem with ALINK?
Thanks.