News:

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

Getting MASM 8.0 to work in Visual C++ 2005 Express

Started by sharpnova, March 11, 2009, 07:00:50 AM

Previous topic - Next topic

sharpnova

First let me say that I have cruised google for hours and tried every type of suggestion I possibly could to solve this issue, but alas, my ignorance of the workings of Visual Studios has made my life miserable once again.

These are my exact steps:

I installed Visual C++ 2005 Express
I installed MASM 8.0

I made a new project (used emptyproj option)
i added a new source file with this code:


%OUT-------------------------------------------------------------------------
%OUT- Written by Ferdi Smit for use with the "ASM Tutorial Part 1"          -
%OUT-------------------------------------------------------------------------
; To compile:   TASM examp1.asm                                             -
;               TLINK examp1.obj                                            -
;----------------------------------------------------------------------------
.model small
.stack
.data
message   db "Hello world, I'm learning Assembly !!!", "$"

.code

main   proc
   mov   ax,seg message
   mov   ds,ax

   mov   ah,09
   lea   dx,message
   int   21h

   mov   ax,4c00h
   int   21h
main   endp
end main


i then right clicked on the project and wen to "custom build rules" and checked "microsoft macro assembler"

now i try to build and get this error:

1>------ Build started: Project: Project1, Configuration: Debug Win32 ------
1>Assembling...
1> Assembling: .\examp1.asm
1>-------------------------------------------------------------------------
1>- Written by Ferdi Smit for use with the "ASM Tutorial Part 1"          -
1>-------------------------------------------------------------------------
1>.\examp1.asm(15) : error A2004: symbol type conflict
1>.\examp1.asm(25) : warning A4023: with /coff switch, leading underscore required for start address : main
1>Project : error PRJ0019: A tool returned an error code from "Assembling..."
1>Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Project1\Project1\Debug\BuildLog.htm"
1>Project1 - 2 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I am completely lost here.


sharpnova