My application attempts to load several plugins. It works just fine in debug mode, loading all of them. In the release mode for every plugin that I am loading with QPluginLoader::load method it returns the error:

The plugin <full path to plugin> uses incompatible Qt library.(4.6.2) [release]

Indeed, I am using Qt 4.6.2 and there are no other versions installed. Plugin directory does not have any Qt core dlls and application directory has all QtCore4 etc dlls.

Question - how to find out what is wrong in "release" mode?