A qt program is compiled today.
Compilation is successful, but an error occurs. There is always a problem with vector iterator not dereferenceable, and the line 98 in the vector is specified.
The program runs well on other hosts, but an error occurs on my computer.
Many friends on the Internet have encountered this problem, but none of them are suitable for me.
Finally, the problem was solved through expert guidance.
Originally, I connected the project to two QT libraries, one in the 4.4.3 of the E disk and the other in the QT library of the d disk.
This is dangerous!
Solution:
1. Change the above questions. Connect only one QT library.
2. Remove the functional code of the Program (otherwise it is still wrong after running ). Until it can run successfully.
3. Add the function step by step and compile it gradually to ensure that the program runs after each code addition.
4. Solve the problem.