Program development under Visual Studio: Compile QT program Debug normally, Release error

1. Environmental introduction

 Visual Studio IDE version:   VS2017

QT version:  QT5.12.6

Problem environment:   Develop QT program under Visual Studio 2017, compile QT program, find that Debug can compile and run normally, Release compile error.

2. The cause and solution of the problem

The cause of the problem:    There is a difference between using linked QT in Debug mode and Release mode.

For example, the libraries used in Release mode: Qt5AxServer.lib, Qt5AxContainer.lib, Qt5Svg.lib......

The libraries used in Debug mode: Qt5AxServerd.lib, Qt5AxContainerd.lib, Qt5Svgd.lib......

Libraries linked in Debug mode are followed by a d.

Solve the problem:    In different modes, select different libraries.

 

 

 

Guess you like

Origin blog.csdn.net/xiaolong1126626497/article/details/112908619
Recommended