<?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[QT and OPENSSL compilation undefined reference]]></title><description><![CDATA[<p dir="auto">I have a code using openssl libraries.</p>
<p dir="auto">#include &lt;openssl/aes.h&gt;<br />
#include &lt;openssl/rsa.h&gt;<br />
#include &lt;openssl/pem.h&gt;</p>
<p dir="auto">and when compiling i have an error undefined reference to PEM_read_RSAPrivateKey</p>
<p dir="auto">in my .pro file</p>
<p dir="auto">QT       += core gui network</p>
<p dir="auto">greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">TARGET = thread<br />
TEMPLATE = app</p>
<p dir="auto">SOURCES += main.cpp<br />
mainwindow.cpp</p>
<p dir="auto">HEADERS  += mainwindow.h</p>
<p dir="auto">FORMS    += mainwindow.ui</p>
<p dir="auto">Im running qt creator 3.5.1 and ubuntu 14.04.</p>
<p dir="auto">I've been searching since yesterday and i cant find a solution. Hoping someone will help! Thank you! Btw, im just new to qt and still exploring things.</p>
]]></description><link>https://forum.qt.io/topic/72493/qt-and-openssl-compilation-undefined-reference</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 12:13:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/72493.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Oct 2016 00:25:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT and OPENSSL compilation undefined reference on Thu, 20 Oct 2016 07:07:23 GMT]]></title><description><![CDATA[<p dir="auto">LIBS += -L/usr/lib -lssl -lcrypto</p>
<p dir="auto">solved my problem. Thanks for the reply :D</p>
]]></description><link>https://forum.qt.io/post/355294</link><guid isPermaLink="true">https://forum.qt.io/post/355294</guid><dc:creator><![CDATA[janlei0524]]></dc:creator><pubDate>Thu, 20 Oct 2016 07:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to QT and OPENSSL compilation undefined reference on Thu, 20 Oct 2016 04:57:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/janlei0524">@<bdi>janlei0524</bdi></a> You're not linking against the openSSL libraries.<br />
You need something like this in your pro file:</p>
<pre><code>LIBS += -L/path/to/the/lib/dir -lopenssllib
</code></pre>
]]></description><link>https://forum.qt.io/post/355264</link><guid isPermaLink="true">https://forum.qt.io/post/355264</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 20 Oct 2016 04:57:55 GMT</pubDate></item></channel></rss>