<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>cannot find -ld3dx9.lib</title>
		<link>http://www.allegro.cc/forums/view/607209</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 04 May 2011 01:07:02 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am trying to link staticly and it comes up with an error saying it cannot find -ld3dx9.lib.</p><p>What am I doing wrong?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Desmond Taylor)</author>
		<pubDate>Tue, 03 May 2011 22:15:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The -l prefix implies gcc, and the .lib extension implies MSVC.  If gcc, try -ld3dx9, for MSVC try d3dx9.lib.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Tue, 03 May 2011 22:17:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This is my current list.</p><p><span class="remote-thumbnail"><span class="json">{"name":"604076","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/0\/b0cf7e99d774791b91e85d81b1102a72.png","w":741,"h":525,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/0\/b0cf7e99d774791b91e85d81b1102a72"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/b/0/b0cf7e99d774791b91e85d81b1102a72-240.jpg" alt="604076" width="240" height="170" /></span></p><p>I just tried it without .lib at the end and it still failed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Desmond Taylor)</author>
		<pubDate>Tue, 03 May 2011 22:23:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I thought gcc used *.a files, so you&#39;d want to find libd3dx9.a, not d3dx9.lib.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Tue, 03 May 2011 22:25:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1</span>ld.exe<span class="k3">|</span><span class="k3">|</span>cannot find <span class="k3">-</span>ld3dx9.a<span class="k3">|</span>
<span class="number"> 2</span><span class="k3">|</span><span class="k3">|</span><span class="k3">=</span><span class="k3">=</span><span class="k3">=</span> Build finished: <span class="n">1</span> errors, <span class="n">0</span> warnings <span class="k3">=</span><span class="k3">=</span><span class="k3">=</span><span class="k3">|</span>
</div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Desmond Taylor)</author>
		<pubDate>Tue, 03 May 2011 22:27:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You don&#39;t add the .a when linking.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Tue, 03 May 2011 22:28:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>When I don&#39;t include anything but &quot;d3dx9&quot; I still get an error :/</p><p>Nevermind, I found the problem. I forgot to install DirectX SDK xD
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Desmond Taylor)</author>
		<pubDate>Tue, 03 May 2011 22:30:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You&#39;re using GCC as your compiler in code::blocks, not MSVC, so you should be linking against *.a files, not *.lib files. Did you download the wrong binary package for Allegro 5? Look in mingw/lib and allegro/lib for the correct archive files. Also, you want the allegro libraries to be linked before addons and before the extra libraries :
</p><pre>
Link Libraries :
-----------------
allegro*.a
allegro_addons*.a
extra_libs*.a
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Tue, 03 May 2011 22:55:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No i have the correct one but the MingW distro didnt have the directx 9 libs so I just downloaded the SDK. Still not working but yea, I know not to link against .lib I don&#39;t know what I was doing when I even did that xD.</p><p>Anyway&#39;s, I am going to uninstall Code::Blocks and install mingw from the distro the code::blocks so that I get the files.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Desmond Taylor)</author>
		<pubDate>Wed, 04 May 2011 01:07:02 +0000</pubDate>
	</item>
</rss>
