PDA

View Full Version : Why can I compile in Release mode by not Debug mode?



agerlach
26th May 2010, 15:47
Hi,

I am using Qt Creator 1.3.83 and am having issues compiling my code into debug mode. Everything compiles and runs fine in release mode though. I downloaded and have my PATH pointing to Qt 4.6.2 for Windows (VS 2008). Qt Creator is set to build using "Qt in PATH Debug".

When I try to build in debug mode I get the following compiler error:


qtmaind.lib(qtmain_win.obj) : fatal LNK1103: debugging information corrupt; recompile module
command failed with exit code 1103
jom 0.8.3 -empower your cores
Does anybody have any ideas on how to remedy this?

squidge
26th May 2010, 16:04
This error usually means you are using the incorrect .lib file. Ensure you are using the correct file and if so, reinstall or recompile the module.

agerlach
26th May 2010, 22:33
Could you please go into detail on how to do that?

squidge
26th May 2010, 22:50
Recompile the module? http://doc.qt.nokia.com/4.6/deployment-windows.html

Or you could just re-download... (and don't forget MinGW libraries are not compatible with Visual Studio libraries and vice versa)

agerlach
27th May 2010, 15:18
I recompiled the Qt but am still having issues. I no longer get any errors but if I try to run the application it exits with code 1. If I start debugging my application never shows and it never stops at my breakpoints and issues an
Exited wit code 0. Everything still works properly under Release mode.