title: Can not compile this assembly code
body: <p>I've started to learn assembly and tried to compile the following code on visual studio 2010</p>
  
  <pre>
  DSEG SEGMENT
      A DW 8
      B DW 10
  DSEG ENDS
  
  SSEG SEGMENT STACK
      DW 100H DUP(?)
  SSEG ENDS
  
  CSEG SEGMENT
  ASSUME CS:CSEG, DS:DSEG, SS:SSEG
  
  MAIN PROC FAR
      PUSH DS
      MOV  AX, 0
      PUSH AX
      MOV  AX, DSEG
      MOV  DS, AX
  
      ; The start of the program
  
      MOV  AX, A
      MOV  BX, B
      ADD  AX, BX
      MOV  A, AX
  
      RET
  MAIN ENDP
  
  CSEG ENDS
  
  END MAIN
  </pre>
  
  <p>I got the following errors:</p>
  
  <pre><code>1&gt;main.asm(17): error A2004: symbol type conflict
  1&gt;main.asm(32): warning A4023: with /coff switch, leading underscore required for start address : MAIN
  1&gt;C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\masm.targets(49,5): error MSB3721: The command "ml.exe /c /nologo /Zi /Fo"Debug\main.obj" /W3 /errorReport:prompt /coff  /Tamain.asm" exited with code 1.
  </code></pre>
  
  <p>I searched the web for a soulution and the only thing I found is that error A2004 happes because the /coff directive.</p>
  
  <p>How can I remove the /coff from the argument list? (If this is what cusing This error to apeare).</p>
  
  <p><br />
  Thanks,<br />
  Ido Sorozon</p>