Solved

MASM 6.14 Problems...

Posted on 2006-06-13
12
1,780 Views
Last Modified: 2008-01-09
It's been awhile since I took my assembly class so maybe there's something I'm forgetting. I'm having trouble compiling one of my old projects. I'm 90% sure there's nothing wrong with the code although if necessary I will post it... (it's just really long) Anyway here's what happens.

I type ml rain.asm and I get the following message(s)

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All Rights Reserved.

 Assembling: rain_new.asm
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/z2
"rain_new.obj"
"rain_new.exe"
NUL
LINK : warning LNK4044: unrecognized option "z2"; ignored
LINK : error : Segment reference in fixup record
rain_new.obj : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I read a little on this error but frankly I have no idea what it means. o.o Could anyone steer me in the right direction? I'd like to get this running again if I can.
0
Comment
Question by:CyrexCore2k
  • 6
  • 3
  • 3
12 Comments
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897390
actually I typed

ml rain_new.asm

my bad.
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897410
Hi, is the code too lengthy ? If so, zip it and post it in a webfolder..

http://www11.rapidupload.com/


---
Harish
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897422
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897457
Just some more information... not sure if it's helpful

ml /Zm /c rain_new.asm  <---- works fine
ml /Zm rain_new.asm <---- error like above
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897485
Well, it gave the following errors:

rain.asm(115): error A2004: Redefinition of symbol
rain.asm(166): error A2004: Redefinition of symbol
rain.asm(197): error A2004: Redefinition of symbol
rain.asm(353): error A2004: Redefinition of symbol
rain.asm(7): error A2105: Expected: instruction or directive
rain.asm(8): error A2105: Expected: instruction or directive
rain.asm(9): error A2105: Expected: instruction or directive
rain.asm(10): error A2105: Expected: instruction or directive
rain.asm(11): error A2105: Expected: instruction or directive
rain.asm(12): error A2105: Expected: instruction or directive
rain.asm(13): error A2105: Expected: instruction or directive
rain.asm(15): error A2105: Expected: instruction or directive
rain.asm(16): error A2105: Expected: instruction or directive
rain.asm(17): error A2105: Expected: instruction or directive
rain.asm(18): error A2105: Expected: instruction or directive
rain.asm(19): error A2105: Expected: instruction or directive
rain.asm(38): error A2005: Symbol is multidefined: DRIPSLOOP
rain.asm(42): error A2026: Reference to multidefined symbol
rain.asm(46): error A2009: Symbol not defined: NEWDRIPFREQ
rain.asm(47): error A2026: Reference to multidefined symbol
rain.asm(49): error A2009: Symbol not defined: RAINHEAD
rain.asm(51): error A2005: Symbol is multidefined: NODRIP
rain.asm(55): error A2005: Symbol is multidefined: SKIPCOL
rain.asm(58): error A2026: Reference to multidefined symbol
rain.asm(84): error A2005: Symbol is multidefined: DRIPSLOOP
rain.asm(88): error A2026: Reference to multidefined symbol
rain.asm(91): error A2009: Symbol not defined: RAINHEAD
rain.asm(94): error A2009: Symbol not defined: RAINTAIL
rain.asm(96): error A2026: Reference to multidefined symbol
rain.asm(101): error A2009: Symbol not defined: MAXDRIPLEN
rain.asm(105): error A2009: Symbol not defined: TAILGROWFREQ
rain.asm(108): error A2009: Symbol not defined: RAINTAIL
rain.asm(109): error A2026: Reference to multidefined symbol
rain.asm(113): error A2005: Symbol is multidefined: CONTINUE
rain.asm(115): error A2005: Symbol is multidefined: SKIPCOL
rain.asm(118): error A2026: Reference to multidefined symbol
rain.asm(150): error A2026: Reference to multidefined symbol
rain.asm(153): error A2009: Symbol not defined: RAINHEAD
rain.asm(156): error A2009: Symbol not defined: RAINTAIL
rain.asm(158): error A2009: Symbol not defined: RAINHEAD
rain.asm(159): error A2026: Reference to multidefined symbol
rain.asm(164): error A2026: Reference to multidefined symbol
rain.asm(166): error A2005: Symbol is multidefined: CONTINUE
rain.asm(171): error A2009: Symbol not defined: DRIPMOVEFREQ
rain.asm(172): error A2026: Reference to multidefined symbol
rain.asm(177): error A2009: Symbol not defined: RAINTAIL
rain.asm(179): error A2026: Reference to multidefined symbol
rain.asm(181): error A2009: Symbol not defined: RAINTAIL
rain.asm(182): error A2026: Reference to multidefined symbol
rain.asm(187): error A2026: Reference to multidefined symbol
rain.asm(190): error A2009: Symbol not defined: RAINTAIL
rain.asm(192): error A2026: Reference to multidefined symbol
rain.asm(195): error A2009: Symbol not defined: RAINTAIL
rain.asm(197): error A2005: Symbol is multidefined: NODRIP
rain.asm(255): error A2009: Symbol not defined: DELAYAMOUNT
rain.asm(270): error A2009: Symbol not defined: KBDCHAR
rain.asm(271): error A2026: Reference to multidefined symbol
rain.asm(275): error A2009: Symbol not defined: OX
rain.asm(276): error A2026: Reference to multidefined symbol
rain.asm(277): error A2009: Symbol not defined: OY
rain.asm(278): error A2026: Reference to multidefined symbol
rain.asm(280): error A2026: Reference to multidefined symbol
rain.asm(287): error A2005: Symbol is multidefined: DONE
rain.asm(288): error A2009: Symbol not defined: ENDPROGRAM
rain.asm(319): error A2009: Symbol not defined: SEED
rain.asm(321): error A2009: Symbol not defined: SEED
rain.asm(337): error A2009: Symbol not defined: KBDCHAR
rain.asm(341): error A2009: Symbol not defined: OX
rain.asm(342): error A2009: Symbol not defined: OY
rain.asm(349): error A2009: Symbol not defined: ENDPROGRAM
rain.asm(351): error A2026: Reference to multidefined symbol
rain.asm(353): error A2005: Symbol is multidefined: DONE

  50284 + 432964 Bytes symbol space free

      0 Warning Errors
     73 Severe  Errors
0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16897508
Hi CyrexCore2k,

I think ml will be using an environment variable to locate the linker. It will then invoke the linker with its own, made up command line.

Sadly I dont know which environment variable it needs setting. Have you any documentation on masm that may help?

Paul
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897512
Ummm you're using a different version or something

rain.asm(7): error A2105: Expected: instruction or directive
rain.asm(8): error A2105: Expected: instruction or directive
rain.asm(9): error A2105: Expected: instruction or directive
rain.asm(10): error A2105: Expected: instruction or directive
rain.asm(11): error A2105: Expected: instruction or directive
rain.asm(12): error A2105: Expected: instruction or directive
rain.asm(13): error A2105: Expected: instruction or directive
rain.asm(15): error A2105: Expected: instruction or directive
rain.asm(16): error A2105: Expected: instruction or directive
rain.asm(17): error A2105: Expected: instruction or directive
rain.asm(18): error A2105: Expected: instruction or directive
rain.asm(19): error A2105: Expected: instruction or directive

If you look at those lines there's nothing wrong with the syntax there so I'm not sure what your assembler is talking about.
0
 
LVL 16

Accepted Solution

by:
PaulCaswell earned 125 total points
ID: 16897540
Hi CyrexCore2k,

Forgot to mention, its probably the wrong linker that is being launched.

Paul
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897547
CyrexCore2k, yes.. sorry.. I had used 5.0 version :)
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897557
Paul,

Yeah thats what I was thinking too since I do have VS 6.0 and VS .Net installed on this system as well... maybe it's trying to use one of their linkers.

I've looked around the files in the zip that I installed masm from but I'm really not sure where to look x_x

To my knowledge MS has released masm 6 as a free product so here's the zip if you feel like taking a look

http://drop.netortech.com/masm611.zip
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897596
YESSSS :D

Okay so I'm still not sure where that environment variable is but I just went ahead and ran ML with the compile only switch and then went directly to the directory with MASMs linker and told it to link the compiled object file and it works :)

I don't feel like trying to figure out all this path stuff so I'll probably just write a batch file to do that for me.

Thanks Paul!
0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16897699
Hi CyrexCore2k,

Here's a batch file that came with the old MSVC 3.1 called MSVCVARS.BAT.

@echo off
set TOOLROOTDIR=C:\MSVC
set PATH=C:\MSVC\BIN;%PATH%
set INCLUDE=C:\MSVC\INCLUDE;%INCLUDE%
set LIB=C:\MSVC\LIB;%LIB%

You will probably have to tinker with it. It might be of help.

Paul
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASM problem 2 31 346
How to Replace 2003 failover Cluster node 4 358
How to "Prevent No Base Register Found" in z/OS Assembly? 6 553
New tabs in IE9 never display anything 3 407
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
An article on effective troubleshooting
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question