You can't link directly against .dll files (well, I think MinGW can, but it can use import libraries just as well).