Re: Error A2006



WhiteFox <spamtrap@xxxxxxxxxx> wrote:

I directly assembly the file in command prompt, the command line is simply:

ml test.asm

it is just a simple assembly program run in DOS mode, thus, I do not think
it will need any header files.

I'm not using VS2005, I just copy the ml.exe from VS2005 and try to do some
assembly works.

I thought I had replied to this, but I don't see it.

Starting with ML 8.0, the /coff switch (which selects the 32-bit object
file format) became the default. If you want to create 16-bit objects, you
need to pass the /omf switch to ml.

However, you will ALSO need a 16-bit linker, the "segmented linker".
There's one in the DDK (bin\bin16\link.exe), or you can search for one on
the Internet. Because you need a non-default linker, you will probably not
be able to allow ml to call the linker. You'll have to do "ml /c /omf" and
call the linker by hand.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.