<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Alfont linker error</title>
		<link>http://www.allegro.cc/forums/view/589466</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 08 Jan 2007 23:15:56 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi folks ^^<br />I have quite a bothering problem with Alfont 1.9.2.<br />When I use Allegro (4.2) as a dynamic library with alfont, everything works ok and my game runs no problem, same thing when I use Allegro as a static library whithout alfont.<br />But as soon as I use allegro as a static library with alfont, i get a linker error :<br />[Linker error] Undefined reference to `_imp__ugetxc&#39;<br />which is repeated many, many times...</p><p>So I decided to create a test program :<br />#define ALLEGRO_STATICLINK<br />#include &lt;alfont.h&gt;<br />#include &lt;allegro.h&gt;</p><p>int main ()<br />{<br />    set_uformat(U_ASCII);<br />   	allegro_init();<br />   	alfont_init();<br />   	<br />   	install_keyboard();<br />   	install_mouse();<br />   	<br />   	alfont_exit();</p><p>    return 0;<br />}END_OF_MAIN()</p><p>But i still get the same error.</p><p>I have tried to make alfont static by modifying the makefile (uncommenting the #TARGET=MINGW32_DLL) but the error still persists.</p><p>INFO : <br />These are the commands I added to the compiler options, but I don&#39;t think the error comes from here.<br />-lalfont -lalleg_s -lgdi32 -lwinmm -lole32 -ldxguid -ldinput -lddraw -ldsound</p><p>Thanks for your help !<br />I will be out of touch from my computer tomorrow and will only be able to come on every Saturday, so don&#39;t think I&#39;ve disappeared ^^
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (New Element)</author>
		<pubDate>Sun, 07 Jan 2007 23:24:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m using allegro and alfont, both statically linked, with <b>static CRT</b>. This is the alleg_s_crt.lib file. When building alfont select statically linked runtime threading model in project options. Hope it helps.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Mon, 08 Jan 2007 04:17:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Ok so good news, the game runs on my pc.<br />Problem was that i didnt actually create a project ^^&#39; <br />What i did was go into project options -&gt; parameters and add the librairies &quot;libalfont.a&quot; and &quot;liballeg.a&quot; in this order (if not in that order it doesn&#39;t work, always put alfont before allegro <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /> ).</p><p>But the game does not work on other people&#39;s computers : a message error comes up saying &quot;Could not find alleg42.dll&quot; so I suppose that the library is still dynamic ... <br />Could you inform me about alleg_s_crt.lib and static CRT please? I&#39;ve never heard of it before ^^&#39; <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>EDIT : Sorry, I forgot to say that I use DevCpp 4.9.9.2 !
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (New Element)</author>
		<pubDate>Mon, 08 Jan 2007 23:15:56 +0000</pubDate>
	</item>
</rss>
