I've done a bit of Google'ing, but everyone I've found with this problem has left seemingly without having found a solution.

How does one tell qmake to generate a .dll AND the accompanying .lib file? Everyone I've seen has been able to generate either the .dll OR the .lib.

And while we're at it, does anyone know why VC++ sometimes needs both? As far as I know, .dll's and .lib's should be completely independent, no?

And, should this be relevant, I'm using the non-commercial licence of Qt.