I'm trying to help my teacher evaluate WinASM for classroom use. I
downloaded the "Full Installer," which seemed to successfully install
WinASM. I read that WinASM is only a front end for MASM, and I wondered
how they would go together, given that I installed MASM from a CD that
came with our text book.
Surely enough, when I tried to assemble an example of source code
(which assembles, links and runs when worked from command line) from the
text book CD, WinASM went looking for a nonexistant c:\MASM directory.
Resetting the paths for Binary, Include and Library to
"C:\80x86\Software" allowed example.asm to assemble, but when we try to
link, we get

C:\80x86\Software\Link /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0
/LIBPATH:"C:\80x86\Software" "C:\80x86\Software\copy_of_example.obj"

Microsoft (R) 32-Bit Incremental Linker Version 5.10.7303
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.

copy_of_example.obj : error LNK2001: unresolved external symbol itoaproc

copy_of_example.obj : error LNK2001: unresolved external symbol atoiproc

copy_of_example.obj : error LNK2001: unresolved external symbol dtoaproc

copy_of_example.obj : error LNK2001: unresolved external symbol atodproc

copy_of_example.obj : error LNK2001: unresolved external symbol inproc
copy_of_example.obj : error LNK2001: unresolved external symbol outproc
copy_of_example.obj : error LNK2001: unresolved external symbol
_ExitProcess@4
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
copy_of_example.exe : fatal error LNK1120: 8 unresolved externals

Make finished. 1 error(s) occured

Please tell me what this is about, and what we have to do to fix
this. We need to know this week, because the first programming
assignment is next week, at which point we will have to go with a
command line if we can't get WinASM to work. Thank you for your time.

Bill Lemmond,
for Deborah Mathews,
Professor of Computer Science,
J. Sargeant Reynolds Community College
Posted on 2004-01-21 10:33:48 by pastshelfdate
Hi,

I really want to help here (as always) and as I haven't too many clues I 'll try to help you find the problem by making assumptions.Since you can assemble and link successfully from the command line, it means that we will find the solution.

various alternatives:

1.You can make a batch file with what you use from the command line. Project-Add Files-Select your batch file.Project-Run batch file.

or

2.Make-Go all. See in the output window the assemble and link lines and note the differences with what you use to assemble and link from the command line (i really need to know what you use-please post it here). You can go Project properties-Make Options and change how Winasm will assemble/link accordingly.

or

3.(preferred method)
In example.asm use something similar to:

IncludeLib yyyyy.lib (for ExitProcess may be KERNEL32.LIB?)

replace END with END _start



Hope this helps, please let me know

akyprian
Posted on 2004-01-21 15:43:01 by akyprian
Dear Mr. Kyprianou,

Thank you for writing back so soon. Actually, we can't link. I'm sorry the section of Win ASM response to our attempt to link wasn't clear. Win ASM reported an error, but I don't know what it's talking about. I tried one of the error search utilities, but the error mentioned by Win ASM wasn't in the list, as far as I could tell.
I'm afraid for now I have to devote my time to a scholarship application. Maybe after Friday I'll be able to further explore Win ASM. Maybe someone at school can come by. It may be easier for someone to help if they can see everything and look into the various settings. Take care.

Bill L.
Posted on 2004-01-21 20:33:01 by pastshelfdate
OK,

when you have the time I can help in anything you might need

regards
Posted on 2004-01-21 22:09:12 by akyprian

copy_of_example.obj : error LNK2001: unresolved external symbol itoaproc

copy_of_example.obj : error LNK2001: unresolved external symbol atoiproc

copy_of_example.obj : error LNK2001: unresolved external symbol dtoaproc

copy_of_example.obj : error LNK2001: unresolved external symbol atodproc

copy_of_example.obj : error LNK2001: unresolved external symbol inproc
copy_of_example.obj : error LNK2001: unresolved external symbol outproc
copy_of_example.obj : error LNK2001: unresolved external symbol
_ExitProcess@4


Did you include the correct library? The first few errors look like the linker cannot find the external defined functions or something like that.

To add, Winasm is supposed to be used with hutch's package for masm which would be masm32 (badly named in my opinion) if I am not wrong. I think it would be better if you install the package by hutch. Of course all you need to run masm is just the ml.exe and linker.exe, but I think hutch's package makes things much easier.

Also I think it would help if you post the codes that you attempted to assemble.
Posted on 2004-01-21 22:52:06 by roticv
Thanks roticv,

The quick start page of the WinAsm Studio site explains everything very well.

( http://www.certifika.com/winasm/quickstart.htm )

Masmer has done a great job.

Regards,

akyprian
Posted on 2004-01-22 07:21:13 by akyprian