News:

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

merry-go-round

Started by hell0, September 29, 2009, 12:51:49 PM

Previous topic - Next topic

hell0

    Thank you...
   
    This is what i did so far with the files that you had uploaded.
   
1. Extracted two files (ConsoleTest.asm) and (ConsoleTest.inc) from the zip.
2. Placed both files in a folder (msm) in c: drive
3. C: is where masm32 is installed.
   
4. Navigate to c:\msm> enter
     "Ml /c consoleText.asm"      ;(consoleText.obj is made).
   
5. Enter
     "Link consoleText.obj"
   
    And the error and warning messages begins to flow ...
    i had not used the .bat files contained within the zip as iam not sure of its usage.

i did try even this command :
link /SUBSYSTEM:WINDOWS  /LIBPATH:c:\masm32\lib  consoleTest.obj
    ...

MichaelW

The files are named ConsoleTest, not ConsoleText. The provided batch file should work from anywhere on the drive where MASM32 is installed.
eschew obfuscation

hell0

Hi MichaelW

That typo 'ConsoleText.asm' did not often occur while assembling or trying to link.
When it did so, as the error was pointed out at the prompt it got corrected.

Just one clarification requested. Which link-instruction is appropriate in this environment?

     Link ConsoleTest.obj
Or
     Link /subsystem:windows  /libpath:c:\masm32\lib ConsoleTest.obj

Thank you...

MichaelW

Since I don't know what the default subsystem is, I would use

\masm32\bin\link /SUBSYSTEM:CONSOLE ConsoleTest.obj

Did you try to build the source that Vortex posted, using the supplied batch file?
eschew obfuscation

hell0

#19
Vortex...

    the issue is resolved.
    i did not use the Build file correctly. that was my mistake.
    i opened the Build.bat, and used the command present in there at cmd prompt
    and... yes, i got it run at console.

    It was caused partly by my lack of understanding the meaning of the term 'subsystem' in this context.
    i kept on not using the term subsystem.

    may i use this break to thank all those
    who came to help me out of this puzzling trying situation.

Thanks...all of you.

Vortex

Hi hell0,

No any problem. Everything is OK now. Let me explain briefly the usage of the command-line switch SUBSYSTEM. If you wish to create a console application like ConsoleTest, you specify the option /SUBSYSTEM:CONSOLE. If your application is designed to present a graphical user interface, for example a window \ dialog box then the option is /SUBSYSTEM:WINDOWS.

Please let us know if you have other questions.