I don't know, but you could check which version of DX you have and for which version you are compiling. What also works is to put the dll next to the .exe.
Did you try installing/reinstalling DirectX on the that pc? Could be due some older DX versions.