title: import in NASM doesn't work?
body: <p>i'm trying to compile the following code on windows 7 (with NASM):</p>
  
  <pre><code>[BITS 32]
  
  extern ExitProcess
  import ExitProcess kernel32.dll
  extern MessageBoxA
  import MessageBoxA user32.dll
  
  segment .data use32
  Caption db 'Caption Text',0
  Text db "My MessageBox Text.",0
  
  segment .code use32
  ..start:
  push dword 0
  push dword Caption
  push dword Text
  push dword 0
  call [MessageBoxA]
  
  push dword 0
  call [ExitProcess]
  </code></pre>
  
  <p>To compile this, I tried <code>nasm -o test.o test.asm</code>, but then it says:</p>
  
  <pre><code>test.asm:4: error: parser: instruction expected
  test.asm:6: error: symbol `import' redefined
  test.asm:6: error: parser: instruction expected
  </code></pre>
  
  <p>Why doesn't it work?</p>
  
  <p>EDIT: ok. simple mistake... <code>nasm -o test.o -f obj test.asm</code> works...</p>