@jgmills Your problem is that you are importing some Pylon headers in the wrong order/missing some include.
Basler suggest importing first the #include <pylon/PylonIncludes.h> and after all the others needed in your headers file.
Checking the latter include you can find a comment:
That macro next enables the definition of GENICAM_USER_ALWAYS_LINK_RELEASE. This definition tells the compiler to link the library with the MD specification also in debug mode.
Concluding, to be able to work in debug mode you can choose between: