<?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 &amp; SDL]]></title><description><![CDATA[<p dir="auto">Hi guys,<br />
Well i really do like using the Qt creator. Defiantly one of the best IDEs out there. But im slightly unsure on how i'd set it up with using SDL. Currently i have this set-up in my .pro file;<br />
@<br />
TEMPLATE = app<br />
CONFIG += console<br />
CONFIG -= app_bundle<br />
CONFIG -= qt</p>
<p dir="auto">SOURCES += main.cpp</p>
<p dir="auto">win32 {<br />
INCLUDEPATH += "C:\SDL\SDL-1.2.14\include"</p>
<pre><code>LIBS += -L"C:\SDL\SDL-1.2.14\lib" \
        -lSDL \
        -lSDLmain
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">That seems fine to me, however when then attempting to build a basic SDL program (Just Initializing &amp; Quitting SDL), i get the following linker errors;<br />
!<a href="http://i.imgur.com/AoqPA.png" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.imgur.com/AoqPA.png</a>(Linker Messages)!</p>
<p dir="auto">Im totally clueless as to what the first error message means. And the seconded error message suggest that i'm linking in SDL wrong..<br />
So im wondering what am i actually doing wrong?</p>
<p dir="auto">Any help greatly appreciated! :)</p>
]]></description><link>https://forum.qt.io/topic/22364/qt-sdl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 14:06:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/22364.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Dec 2012 02:58:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT &amp; SDL on Fri, 21 Dec 2012 08:06:48 GMT]]></title><description><![CDATA[<p dir="auto">First two warnings are not that important, you can ignore them or use Q_UNUSED macro to get rid od the warning.</p>
<p dir="auto">The conflict - I do no know this error. Still seems to be there might be a clash between different MSVC versions, but if the code works, then it's probably OK.</p>
]]></description><link>https://forum.qt.io/post/160314</link><guid isPermaLink="true">https://forum.qt.io/post/160314</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 21 Dec 2012 08:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to QT &amp; SDL on Thu, 20 Dec 2012 22:24:00 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="sierdzio" date="1355990925"]Which version of MSVC was SDL compiled with, and what do you use to compile your project?[/quote]</p>
<p dir="auto">Well ive been using sdl 1.2.14, since sdl's current version is 1.2.15, i cant actually remember off by heart what version of msvc my version uses... could be visual c++ 5.<br />
I use msvc 2010 for my project.</p>
<p dir="auto"><em>Edit:</em><br />
I'm now actually using SDL 1.2.15. Might as-well update to the latest version. Nothing has changed however :/, same linker errors present as in the image.</p>
<p dir="auto"><em>Seconded Edit:</em><br />
So i have things building :), thats the good news. Now, its more of a curiosity. SDL for some reason doesn't like having an empty main(). So the first two errors reference an "unreferenced formal parameter". Im guessing thats nothing to worry about?<br />
But the other two errors still consist of a confliction;<br />
@<br />
defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library<br />
@</p>
<p dir="auto">Just wondering what that actually is now? And if it should be something i should worry about?<br />
Image of the warnings;<br />
!<a href="http://i.imgur.com/08yyn.png(warnings)" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.imgur.com/08yyn.png(warnings)</a>!</p>
]]></description><link>https://forum.qt.io/post/160282</link><guid isPermaLink="true">https://forum.qt.io/post/160282</guid><dc:creator><![CDATA[dan369]]></dc:creator><pubDate>Thu, 20 Dec 2012 22:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to QT &amp; SDL on Thu, 20 Dec 2012 08:08:45 GMT]]></title><description><![CDATA[<p dir="auto">Which version of MSVC was SDL compiled with, and what do you use to compile your project?</p>
]]></description><link>https://forum.qt.io/post/160147</link><guid isPermaLink="true">https://forum.qt.io/post/160147</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 20 Dec 2012 08:08:45 GMT</pubDate></item></channel></rss>