Chances are, you're trying to mix 32-bit and 64-bit executable files (I mean, PE files, DLLs or EXEs or anything). They are incompatible but can be linked during build crashing only during run-time. You need to investigate all your dependencies. Microsoft Dependency Walker can help you, see
http://www.dependencywalker.com/[
^].
—SA