This can happen when classes exported from a library have configuration-dependent members. For example:
#ifdef _DEBUG
int m_nData;
#endif