I used this command : gcc -shared -o libtree-sitter-xml.dll -Isrc src/parser.c src/scanner.c , Instead of : gcc -shared -o libtree-sitter-xml.dll src/parser.c
I used this command : gcc -shared -o libtree-sitter-xml.dll -Isrc src/parser.c src/scanner.c , Instead of : gcc -shared -o libtree-sitter-xml.dll src/parser.c