Just started playing with VS 2010 today - the 'link library dependencies' still doesn't work properly with FreeImage, it's picking up the debug versions of EXR, JPG etc in the release configuration of FreeImage, which means when you try to link FreeImage in release mode in OgreMain, it fails like this:
Code: Select all
FreeImage.lib(libraw_cxx.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
FreeImage.lib(IexBaseExc.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in OgreAlignedAllocator.obj
FreeImage.lib(half.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in OgreAlignedAllocator.obj
...
You can see the problem if you look at the greyed-out details of the Framework and References page, which has no configuration selector but yet points at the Debug libraries only. Also, if you look at the Librarian > Command-Line property section in Release mode you can see it pulling in the Debug libraries of EXR et al.
From the looks of it, this automatic linking feature is designed for .Net and doesn't do a very good job of managing multiple configurations with C++, I suggest going back to the manual linking.