News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Please help me !

Started by conmuacuoi, July 20, 2006, 09:25:31 AM

Previous topic - Next topic

conmuacuoi

See my source code is

.model tiny
.code
.startup
   mov dx, OFFSET msg
   mov ah, 9
   int 21h
.exit
.data
msg DB "Hello out there!", 13, 10, '$'
end

I wants to display an simple messages : "Hello out there !"

I compiler success but when I link obj file then occur error:

Compiler:

C:\>c:\masm32\bin\ml /c /coff lession01.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: lession01.asm

C:\>
Link

C:\>c:\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF lession01.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

lession01.obj : fatal error LNK1190: invalid fixup found, type 0x0001

C:\>

please show me this error and solution .

Many thanks!

Vortex

C:\>c:\masm32\bin\ml /c /coff lession01.asm

You should remove the /coff switch as that version of MS link accepts only OMF object code.

japheth


and use an OMF linker!

Good ones are OPTLINK from Digital Mars or VALX (CC386).

VALX has become the most powerful one recently: http://members.tripod.com/~ladsoft/dos/valx.zip

just enter:

ml -c test.asm
valx test.obj;

and you will get what you want.

conmuacuoi

Thanks for all !
I 'll try to compiler again .