Can't build Hello World...
I am new to QT and I was ask to compile a project using QT 5.7.0 msvc2015_64bit version of Qt. The problem with this is I can't build my sample project "Hello World"
Everytime I run my project I got this:
Starting D:\Test Project\build-HelloWorld-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\debug\HelloWorld.exe...
The program has unexpectedly finished.
When i tried to debug it there's always a messagebox that pops up
It says "CDB Process Terminated"
What should I do? I can't even make a simple program using this.
D:\File ni Faye\Test Project\build-HelloWorld-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\debug\HelloWorld.exe crashed.
@HashTagJF Can you show the code? How do you start the application: from QtCreator/VisualStudio?
Well I just use the codes I found here: https://wiki.qt.io/Qt_for_Beginners
@jsulm I run it using the said version of QT.
If you get an exe, it means that it builds fine. If you do not get an exe but you get an compiler error, then building is a problem.
So from what I see, you can build without an issue, but running the exe crashes.
Most often this type of issue is due to the application loading the wrong versions of dlls that it needs. It might find other versions of platform files or even other versions of Qt. For example the application tries to load 32bit dlls instead of 64.
Do you have other versions of Qt installed except for the MSVC 2015 64 bit?
@TheBadger I don't have any other qt installed in my computer.
When I tried to run the .exe in my debug folder this is what I got.
I already tried to reinstall my qt and also my Visual studio but the problem is still the same
@HashTagJF If you try to start your application directly from Explorer it will not find the Qt libraries. You either should start it from VisualStudio or QtCreator. Or you deploy your application to create a package with all needed Qt DLLs and plug-ins: http://doc.qt.io/qt-5/windows-deployment.html