When I'm running syntastic, I always see the NASM error,

binary output format does not support external references

This is because I'm assembling with nasm -f elf64. How do I instruct syntastic to test the syntax with -f elf64? Unfortunately, it doesn't seem like I can skirt this issue with an in-file directive.

  • 2
    :h syntastic-config-makeprg, :h syntastic-config-debug.
    – lcd047
    Oct 1 '18 at 22:05
  • @lcd047 thanks that worked, self-answered below Oct 1 '18 at 22:26

I got this done with,

let g:syntastic_nasm_nasm_args = '-f elf64'

Thanks to lcd047 who referenced me in the comments to :h syntastic-config-makeprg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.