So I tested linking tgui but using only sfml code, which worked (I tried a lot of funny stuff). I'm going to compile both tgui and sfml, get the pdb files (is there a reason they aren't generally distributed?), and find out what's wrong. Then I'll get back to you.
