SmtpClient-for-Qt | Allows applications | Email library
kandi X-RAY | SmtpClient-for-Qt Summary
kandi X-RAY | SmtpClient-for-Qt Summary
SMTP Client for Qt (C++) - Version 1.1.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SmtpClient-for-Qt
SmtpClient-for-Qt Key Features
SmtpClient-for-Qt Examples and Code Snippets
Community Discussions
Trending Discussions on SmtpClient-for-Qt
QUESTION
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 that on my Windows I have the OpenSSL 1.1.1c 28 May 2019. On my Ubuntu 19.04 the same exact program compiles and run as usual but not on Windows.
I git clone
my repository into Windows
, followed successfully this post and the program builds correctly.
The problem is that when I run it, it cannot find the executable
and is asking for it as it is possible to see from the print screen below:
here is my .pro
file:
ANSWER
Answered 2019-Dec-10 at 18:26As 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:
QUESTION
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 that on my Windows
I have the OpenSSL 1.1.1c 28 May 2019
.
On my Ubuntu 19.04
the same exact program compiles and run as usual but not on Windows
.
I am attaching below a print screen of the errors; however those are mostly of two types:
1) inconsistent dll linkage
2) definition of dllimport static data member not allowed
Following this link it seems that Windows
needs its "own" include (i.e. #include
) however in my case the smtp
library from the above link does not have any #include
and don't know if they have to be generated. It seems they don't from the post I found
In addition I was reading this post too because I thought I could be useful but no information was useful to help me sort out the problem
I dug more and actually went to where the windows includes
are and the following is the path I was able to find, but don't know if that could be useful:
From all the posts I red the problem seems to be, in this specific case for Windows
on how the
.pro
file is written. Below my .pro
file.
Note that I cloned this repository into my windows 10
.
.pro
...ANSWER
Answered 2019-Dec-10 at 15:46The files are designed to be compiled with the define SMTP_BUILD
set where the source is added, either to a library or to an executable. You have to add the
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SmtpClient-for-Qt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page