Qt5 - Windows :Windows cannot find executable

后端 未结 1 756
醉梦人生
醉梦人生 2021-01-29 09:23

I am trying to build a project using Windows 10 and Qt5.12. The small program is using the smtp protocol available here. I can confirm tha

相关标签:
1条回答
  • 2021-01-29 09:43

    As shown in the image of your .pro you are using TEMPLATE = lib whose objective is to create a library whose product is a .dll, .so, etc. that is not an .exe.

    If you want to generate an executable you must use:

    TEMPLATE = app
    

    Plus:

    To make it easier to include the library in your project, I have created this project whose objective is to provide a .pri that is easy to link to any project with .pro. To do this you must follow the following steps:

    • Download the project
    • Add include(/path/of/SMTPEmail.pri) to your .pro
    • Includes using #include <SmtpMime>
    0 讨论(0)
提交回复
热议问题