Hi piershaw,
Welcome to the Forum.
I'm not familiar with SASM. What happens when you try it? What does the documentation say?
In Nasm, "extern" ought to work. "import" is specific to the "-f obj" output format (which you probably don't want to use). What happens if you just leave it out?
Sorry I can't help you more.
Best,
Frank