QTCreator does not recognize the executable when debugging a C ++ program

I installed QTCreator on ubuntu 12.04 via sudo apt-get install. My problem is that QTcreator cannot recognize the executable in debug mode, although it works fine without debugging .. when I just run my program. The error that QTCreator throws me during debugging is:

s/Prog": not in executable format: File format not recognized 

I can use gdb outside of QtCreator. My whole tool chain shows me GCC (x86 64 bit) ... this setting is fine. If not, please recommend.

+1
source share
1 answer

I had the same problem on my Ubuntu 13.10 and I did this sudo apt-get install gdb , after which the debugger worked fine. However, it seemed strange to me that although I already had gdb and gdb64 in /usr/bin , apt did not say that gdb already installed and he installed it (possibly an updated version).

Also check your tool chain and make sure you are using gdb 64-bit if your executable is built on 64-bits .

I am using Qt Creator 3.1.0 , perhaps you should also upgrade QtCreator .

Hope this helps.

0
source

All Articles