The question is: did you build the MongoDB C++ library in 32 or 64 bit ?
If the later then you can't use them with to build a 32bit application. Beside compiler, architecture matters as well. You can't mix and match 32 and 64 bit when building librairies or applications.