<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The procedure entry point cound not be located in the dynamic link library]]></title><description><![CDATA[<p dir="auto">I use Qt in VS 2017. I try to run simple example, but I got this error:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/b5d87046-bab9-4f34-829e-148c64f63392.png" alt="5ab93106-2c8f-45d5-a0db-fe89f61497d9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">what is this ?</p>
]]></description><link>https://forum.qt.io/topic/114628/the-procedure-entry-point-cound-not-be-located-in-the-dynamic-link-library</link><generator>RSS for Node</generator><lastBuildDate>Wed, 30 Sep 2026 07:59:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114628.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 May 2020 05:07:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to The procedure entry point cound not be located in the dynamic link library on Sat, 09 May 2020 10:19:17 GMT]]></title><description><![CDATA[<p dir="auto">problem solved. it needs some .dll file</p>
]]></description><link>https://forum.qt.io/post/593675</link><guid isPermaLink="true">https://forum.qt.io/post/593675</guid><dc:creator><![CDATA[Aminmlp]]></dc:creator><pubDate>Sat, 09 May 2020 10:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to The procedure entry point cound not be located in the dynamic link library on Sat, 09 May 2020 10:12:45 GMT]]></title><description><![CDATA[<p dir="auto">This is no minimal example - please try to simply use QMutex in main() to see if it happens there too.</p>
]]></description><link>https://forum.qt.io/post/593673</link><guid isPermaLink="true">https://forum.qt.io/post/593673</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 09 May 2020 10:12:45 GMT</pubDate></item><item><title><![CDATA[Reply to The procedure entry point cound not be located in the dynamic link library on Sat, 09 May 2020 09:44:19 GMT]]></title><description><![CDATA[<p dir="auto">tis is my .h file:<br />
class FortuneThread :public QThread<br />
{<br />
Q_OBJECT</p>
<p dir="auto">private:<br />
QString hostName;<br />
quint16 port;<br />
QMutex mutex;<br />
QWaitCondition cond;<br />
bool quit;<br />
public:<br />
FortuneThread(QObject *parent = 0);<br />
~FortuneThread();</p>
<pre><code>void requestNewFortune(const QString &amp;hostName, qint16 port);
void run() override;
</code></pre>
<p dir="auto">signals:<br />
void newFortune(const QString &amp;fortune);<br />
void error(int socketError, const QString &amp;message);<br />
};</p>
<p dir="auto">and this is my .cpp file:<br />
#include &lt;QtCore&gt;<br />
#include &lt;QtNetwork&gt;</p>
<p dir="auto">#include "FortuneThread.h"</p>
<p dir="auto">using namespace Qt;<br />
FortuneThread::FortuneThread(QObject *parent): QThread(parent), quit(false)<br />
{<br />
}</p>
<p dir="auto">FortuneThread::~FortuneThread()<br />
{<br />
mutex.lock();<br />
quit = true;<br />
cond.wakeOne();<br />
mutex.unlock();<br />
wait();<br />
}</p>
<p dir="auto">void FortuneThread::requestNewFortune(const QString &amp;hostName, qint16 port)<br />
{<br />
QMutexLocker locker(&amp;mutex);<br />
this-&gt;hostName = hostName;<br />
this-&gt;port = port;<br />
if (!isRunning())<br />
start();<br />
else<br />
cond.wakeOne();<br />
}</p>
<p dir="auto">void FortuneThread::run()<br />
{<br />
mutex.lock();<br />
QString serverName = hostName;<br />
qint16 serverPort = port;<br />
mutex.unlock();</p>
<pre><code>while (!quit)
{
	const int Timeout = 5 * 1000;
	QTcpSocket socket;
	socket.connectToHost(serverName, serverPort);

	if (!socket.waitForConnected(Timeout))
	{
		emit error(socket.error(), socket.errorString());
		return;
	}

	QDataStream in(&amp;socket);
	in.setVersion(QDataStream::Qt_4_0);
	QString fortune;

	do
	{
		if (!socket.waitForReadyRead(Timeout))
		{
			emit error(socket.error(), socket.errorString());
			return;
		}
		in.startTransaction();
		in &gt;&gt; fortune;
	} while (!in.commitTransaction());

	mutex.lock();
	emit newFortune(fortune);

	cond.wait(&amp;mutex);
	serverName = hostName;
	serverPort = port;
	mutex.unlock();
}
</code></pre>
<p dir="auto">}</p>
<p dir="auto">you know, when I define QMutex or QmutexLocker, I get this error ??</p>
]]></description><link>https://forum.qt.io/post/593672</link><guid isPermaLink="true">https://forum.qt.io/post/593672</guid><dc:creator><![CDATA[Aminmlp]]></dc:creator><pubDate>Sat, 09 May 2020 09:44:19 GMT</pubDate></item><item><title><![CDATA[Reply to The procedure entry point cound not be located in the dynamic link library on Sat, 09 May 2020 07:43:29 GMT]]></title><description><![CDATA[<p dir="auto">Please provide some code / a minimal example to reproduce this problem.</p>
]]></description><link>https://forum.qt.io/post/593665</link><guid isPermaLink="true">https://forum.qt.io/post/593665</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 09 May 2020 07:43:29 GMT</pubDate></item></channel></rss>