Okay, This is very(?) different because of the "$include". This is the same as cut and pasting the two files into one, and should work without either "global" or "extern
.
What I did, and I should have shpwed this(!), was:
nasm -f elf64 phrases.asm
nasm =f elf64 chat.asm
ld chat.o phrases,o =o chat
this is my understanding of what :global" and "extern" do.
So perhaps you should try something like that - -f win64I guess? - before we claim to have fotten it figured out...
I should try to make a "sticky" post on how to ask for hel[. It shuld point out that Nasm will do a lot of things, so you should tell us the command line you gave to Nasm and the commans libe you gave to the linker, if any. I should do the same!
Best,
Frank