<?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[How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27;]]></title><description><![CDATA[<p dir="auto">I am trying to get Class Diagrams in svg format. I have created headers and included them correctly. However, at run-time this error comes. How to solve this. Help my c++ gurus.</p>
]]></description><link>https://forum.qt.io/topic/127130/how-to-solve-this-error-undefined-reference-to-__imp__zn13qsvggeneratorc1ev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 04:10:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/127130.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 May 2021 09:12:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 11:22:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> thanks again. &lt;3</p>
]]></description><link>https://forum.qt.io/post/662383</link><guid isPermaLink="true">https://forum.qt.io/post/662383</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 11:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 11:19:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faran">@<bdi>FaraN</bdi></a><br />
I appreciate your love, but will accept it anonymously/from a distance. ;-)</p>
]]></description><link>https://forum.qt.io/post/662382</link><guid isPermaLink="true">https://forum.qt.io/post/662382</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 30 May 2021 11:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:50:31 GMT]]></title><description><![CDATA[<p dir="auto">Brother, I love you. Bundle of thanks. It worked. 100%</p>
<p dir="auto">please provide your linkedin. &lt;3</p>
]]></description><link>https://forum.qt.io/post/662377</link><guid isPermaLink="true">https://forum.qt.io/post/662377</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 10:50:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:38:40 GMT]]></title><description><![CDATA[<p dir="auto">Respected Sir, I'm doing it. I'll tell you in 10-15 min.<br />
sorry I can only msg once in 10 minutes. Qt forum is restricting me.</p>
]]></description><link>https://forum.qt.io/post/662376</link><guid isPermaLink="true">https://forum.qt.io/post/662376</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 10:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:29:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faran">@<bdi>FaraN</bdi></a><br />
Well you showed your <code>.pro</code> but didn't answer any of the other questions.....</p>
<p dir="auto">Anyway, your error message implies to me you are using that <strong>QSvgGenerator Class</strong>, from whatever route, and I said:</p>
<blockquote>
<p dir="auto">If you are indeed using the QSvgGenerator Class, what did you do about the qmake: QT += svg from the doc page?</p>
</blockquote>
<p dir="auto">So try changing to first line to</p>
<pre><code>QT += core gui svg
</code></pre>
<p dir="auto">Clear out build output directory and try re-running <code>qmake</code> and rebuilding from scratch.  Does that help?</p>
]]></description><link>https://forum.qt.io/post/662375</link><guid isPermaLink="true">https://forum.qt.io/post/662375</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 30 May 2021 10:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:24:02 GMT]]></title><description><![CDATA[<p dir="auto">QT       += core gui</p>
<p dir="auto">greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">CONFIG += c++11</p>
<h1>You can make your code fail to compile if it uses deprecated APIs.</h1>
<h1>In order to do so, uncomment the following line.</h1>
<p dir="auto">#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0</p>
<p dir="auto">SOURCES += <br />
../Source/array.cpp <br />
../Source/button.cpp <br />
../Source/class.cpp <br />
../Source/constructor.cpp <br />
../Source/container.cpp <br />
../Source/function.cpp <br />
../Source/functions.cpp <br />
../Source/globals.cpp <br />
../Source/variable.cpp <br />
../Source/win_main.cpp <br />
main.cpp</p>
<p dir="auto">HEADERS += <br />
../Headers/array.h <br />
../Headers/button.h <br />
../Headers/class.h <br />
../Headers/constructor.h <br />
../Headers/container.h <br />
../Headers/function.h <br />
../Headers/functions.h <br />
../Headers/globals.h <br />
../Headers/variable.h <br />
../Headers/win_main.h</p>
<p dir="auto">FORMS +=</p>
<h1>Default rules for deployment.</h1>
<p dir="auto">qnx: target.path = /tmp/$${TARGET}/bin<br />
else: unix:!android: target.path = /opt/$${TARGET}/bin<br />
!isEmpty(target.path): INSTALLS += target</p>
]]></description><link>https://forum.qt.io/post/662374</link><guid isPermaLink="true">https://forum.qt.io/post/662374</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 10:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:17:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faran">@<bdi>FaraN</bdi></a><br />
So I don't think this is "after building", I think this is <em>during</em> building at the <em>link</em> stage.  Try just doing a <em>build</em> in <strong>Creator</strong>, not a <em>run</em>, and verify you get this error.</p>
<p dir="auto">It looks like you are missing a library for this "SVG Generator", or possibly have not specified it correctly, or it's the wrong version/compiler, or other possibilities.</p>
<p dir="auto">You need to state things like: what version of Qt, what platform, what compiler, where this <code>SvgGenerator</code> stuff is supposed to come from (is it the <a href="https://doc.qt.io/qt-5/qsvggenerator.html" target="_blank" rel="noopener noreferrer nofollow ugc">QSvgGenerator Class</a>?), whether you build Qt yourself or got it from somewhere?  And most important show your project's <code>.pro</code> file so we can see how you are trying to link?</p>
<p dir="auto">If you are indeed using the <a href="https://doc.qt.io/qt-5/qsvggenerator.html" target="_blank" rel="noopener noreferrer nofollow ugc">QSvgGenerator Class</a>, what did you do about the <code>qmake:	QT += svg</code> from the doc page?</p>
]]></description><link>https://forum.qt.io/post/662373</link><guid isPermaLink="true">https://forum.qt.io/post/662373</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 30 May 2021 10:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:14:00 GMT]]></title><description><![CDATA[<p dir="auto">this is the code:</p>
<pre><code>//Save file as SVG

QString path = QFileDialog::getSaveFileName(w,("Save as image"), "/demo.svg", ("SVG file (*.svg)"));

if (path.isEmpty())
    return;
temp_img.setFileName(path);

//temp_img.setViewBox(QRect(0, 0, 1000, 1000));

temp_img.setSize(QSize(2000, 2000));
</code></pre>
]]></description><link>https://forum.qt.io/post/662372</link><guid isPermaLink="true">https://forum.qt.io/post/662372</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 10:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 10:02:05 GMT]]></title><description><![CDATA[<p dir="auto">Yes in Qt Creator, when i press RUN, after building error comes.<br />
-&gt;<br />
<img src="https://ddgobkiprc33d.cloudfront.net/bb1f81a5-1dc0-47db-b754-1ce152881a76.png" alt="187ac277-0567-43c1-922e-b6b835d72333-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/662370</link><guid isPermaLink="true">https://forum.qt.io/post/662370</guid><dc:creator><![CDATA[FaraN]]></dc:creator><pubDate>Sun, 30 May 2021 10:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to solve this error -&gt; undefined reference to &#96;__imp__ZN13QSvgGeneratorC1Ev&#x27; on Sun, 30 May 2021 09:54:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faran">@<bdi>FaraN</bdi></a> said in <a href="/post/662366">How to solve this error -&gt; undefined reference to &amp;#x60;__imp__ZN13QSvgGeneratorC1Ev'</a>:<br />
Hi and welcome.</p>
<blockquote>
<p dir="auto">I am trying to get Class Diagrams in svg format.</p>
</blockquote>
<p dir="auto">What does this mean?  Something in a program of your own, something in Qt <strong>Creator</strong>, something else?</p>
<blockquote>
<p dir="auto">However, at run-time this error comes</p>
</blockquote>
<p dir="auto">So you are saying this this comes up at <em>run-time</em> (when you run your application), not at <em>link time</em> (during the build)?</p>
]]></description><link>https://forum.qt.io/post/662369</link><guid isPermaLink="true">https://forum.qt.io/post/662369</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 30 May 2021 09:54:45 GMT</pubDate></item></channel></rss>