Board index » off-topic » class
2004-10-30 09:40:15 PM
Please,look at the following program:
mb_ok equ 0
hWnd equ 0
lpText equ offset text
lpCaption equ offset caption
extrn ExitProcess :proc
extrn MessageBoxA :proc
DATA segment use32 public
text db "Happy new academic year",13,10
caption db "Hello Students",0,'$'
code segment use32 public
Assembling this program with tasm32 is ok, but the linker, ilink32, displays the following fatal error: "...additional segment need to be defined in a .DEF file"
Who can explain and solve this error, especially, what is a DEF file ?
I found,that including the class 'code' in only one segment's declaration,will solve the problem.
Please, explain me the reason.
I know that in 16-bit programs,the class directive is an option.
I see that in 32-bits it is a must.I would like to understand the diffrence between these two meanings of class.