Hi Ruud,
I would advise you against "-f rdf". I think it's broken currently anyway. The only reason Nasm includes the "library" utility is that it's a "homemade" output format and such tools don't exist anywhere else in the world. I don't think it's what you want.
Just put your Nasm code in a separate file. "global" (I think Masm/Tasm calls it "public") uells Nasm to tell the linker that the code is in this file - make it available elsewhere. "extern" tells Nasm to tell the linker that the code is used here, but exists elsewhere. After that, it's up to the linker. You Probably find "lib.exe" with the linker. In the Linux environment, you'd use "ar" to create a library.
You sometimes use "-f bin". You can't make a library, but you can still do something like:
jmp start
%include "read.asm"
%include "write.asm"
; etc.
start:
call write
;etc.
;...
if you want your code in separate files.
Hope this helps...
Best,
Frank