The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: marcosadp on April 12, 2006, 05:34:16 AM

Title: RadASM link.exe freezes
Post by: marcosadp on April 12, 2006, 05:34:16 AM
Well, my problem is that when I compile a project with RadASM using MASM32, sometimes the link.exe freezes, but it gives me no output. I have to finish the process with the task manager. RadASM's linking progress bar keeps on going until I finish the process.

I already tried changing the arguments of it, and I tried different versions of masm, but still the same problem.

Cyas
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 12, 2006, 05:49:42 AM
Sory I was wrong. It does say something

warning LNK4033: converting object format from omf to coff
Title: Re: RadASM link.exe freezes
Post by: KetilO on April 12, 2006, 12:03:43 PM
Hi marcosadp

What OS are you using?

It would also help if you posted the Link command from project options.

You can also try to turn off threaded build.

KetilO
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 12, 2006, 04:05:01 PM
I'm using Microsoft Windows XP Home Edition Version 2002 Service Pack 2

Command:
5,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"$L" /OUT:"$5",3,4

I don't know who I trun off the threaded build.
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 12, 2006, 04:10:09 PM
Ok I finally turned off the threaded build option.
But RadASM crashes when it tries to link.
Title: Re: RadASM link.exe freezes
Post by: Mark Jones on April 12, 2006, 05:11:56 PM
Hi Marco, what version of LINK.EXE are you using? (Goto start, run, cmd, link.exe)

Maybe could you include your project so we can test it?
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 12, 2006, 05:56:30 PM
It says
'link.exe' is not recognized as an internal or external command, operable program or batch file.

However, when I execute it whit de whole path it tells me:
Microsoft (R) Incremental Linker Version 5.12.8078

It happens with all sources I try to compile, not only with one special. It also happens with the examples that come with RadASM.
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 14, 2006, 07:00:19 PM
So, someone knows what's going on??
Title: Re: RadASM link.exe freezes
Post by: Mark Jones on April 14, 2006, 07:33:17 PM
If you open a dos prompt and type link.exe and it says basically "file not found" then there is a path problem. \masm32\bin should be included in your PATH statement. Check start, right-click on my computer, properties, advanced, environment variables, in "system variables." :U

It sounds like the other problem you're having is that link.exe is not in the location specified in the link command:

Quote
Command:
5,O,$B\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"$L" /OUT:"$5",3,4

The $B gets turned into "C:\MASM32\BIN" or whatever your \RadASM\MASM.ini file sets it to, look in there under [Paths]. (If you didn't install MASM32 to the C drive or moved it, this would cause the problem.) :wink
Title: Re: RadASM link.exe freezes
Post by: marcosadp on April 14, 2006, 09:03:25 PM
I guess that's not a error of path's... because sometimes, when compiling the same code, the linker works and sometimes not...

I can compile, but some times I have to end the linker's process and try several times.
Title: Re: RadASM link.exe freezes
Post by: andrejus on August 09, 2008, 05:24:50 PM
Hi,

While linking file i get from link.exe such notification:

C:\Masm32\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /DEBUG /PDB:"Addressing.pdb" /VERSION:4.0 /LIBPATH:"C:\Masm32\Lib" /OUT:"Addressing.exe" "Addressing.obj"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : LNK6004: Addressing.exe not found or not built by the last incremental link; performing full link

I investigated Link.exe option descripions and found out that /INCREMENTAL is implied when /DEBUG is specified, i.e. when /DEBUG option is enebled then linker handles incremental linking. How i would get rid of this notification without inserting /INCREMENTAL:NO and leaving /DEBUG enabled.