<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>allegro-config bug in 4.2.2?</title>
		<link>http://www.allegro.cc/forums/view/595239</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 23 Feb 2008 23:57:29 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m working on a project using allegro and g++ in linux. I have version 4.2.0 installed in Ubuntu, which is where I do most of my work; I also have version 4.2.2 installed in Gentoo on my laptop.</p><p>Recently I tried to compile my project on my laptop. I was receiving a linker error that was reporting undefined references. I&#39;m linking using `allegro --libs` which returns -lalleg as one of the options, on Ubuntu it returns -lalleg-4.2.0 so I tried -lalleg-4.2.2 which worked correctly.</p><p>I&#39;ve done a bit of poking around on the web, and havn&#39;t found anyone mentioning this ... so, possible bug in allegro-config? or did gentoo emerge not setup the libraries correctly?</p><p>And as an added note, I do have &#39;/usr/local/lib&#39; as an entry in /etc/ld.so.conf. </p><p>Danger
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Danger)</author>
		<pubDate>Sat, 23 Feb 2008 09:44:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What undefined references do you get?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Sat, 23 Feb 2008 11:12:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Here&#39;s a snipet of a few of the errors I was getting from the following command.</p><p>g++ -o run_bluestar `allegro-config --libs release` main.o game.o ticks.o Ship.o Vector2.o init.o imageloader.o map.o mathw.o Entity.o</p><p>main.cc:(.text+0xc3): undefined reference to `font&#39;<br />main.cc:(.text+0xda): undefined reference to `textout_ex&#39;<br />main.cc:(.text+0x15f): undefined reference to `vsync&#39;<br />main.cc:(.text+0x164): undefined reference to `gfx_driver&#39;<br />main.cc:(.text+0x19e): undefined reference to `screen&#39;<br />main.cc:(.text+0x1b9): undefined reference to `blit&#39;<br />main.cc:(.text+0x200): undefined reference to `key&#39;<br />main.cc:(.text+0x400): undefined reference to `remove_mouse&#39;<br />main.cc:(.text+0x40e): undefined reference to `destroy_bitmap&#39;<br />main.cc:(.text+0x416): undefined reference to `allegro_exit&#39;</p><p>`allegro-config --libs release` and  `allegro-config --libs` both output the following.</p><p>-L/usr/lib -lalleg -lm -lXxf86vm -lXcursor -lXpm -lXext -lX11 -lpthread -ldl</p><p>and if I append -4.2.2 I get this</p><p>-L/usr/lib -lalleg-4.2.2 -lm -lXxf86vm -lXcursor -lXpm -lXext -lX11 -lpthread -ldl</p><p>which works correctly.</p><p>EDIT:</p><p>I decided to go into the library (/usr/lib) to see what was there for allegro. I found</p><p>liballeg-4.2.2.so<br />liballeg.a<br />liballeg.so.4.2  --&gt;  liballeg-4.2.2.so<br />liballeg_unsharable.a</p><p>Where liballeg.so.4.2 is a symlink to liballeg-4.2.2.so. so I added the following symlink,</p><p>liballeg.so  --&gt;  liballeg-4.2.2.so</p><p>which now lets me use -lalleg because it is symlinked to -lalleg-4.2.2. Now I can continue to use the same Makefile for my project on my laptop and desktop, so I&#39;m happy.</p><p>Though was this Gentoo&#39;s emerge that forgot the symlink, or was this allegro installing / allegro-config ?</p><p>Danger
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Danger)</author>
		<pubDate>Sat, 23 Feb 2008 21:22:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>mmmm</p><p>if you are trying to link with the shared lib, perhaps you should use ´allegro-config --shared´ instead of allegro-config --libs release</p><p>maybe...</p><p>regards
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Julian Guarin)</author>
		<pubDate>Sat, 23 Feb 2008 22:12:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Though was this Gentoo&#39;s emerge that forgot the symlink,
</p></div></div><p>
Probably, I&#39;ve had to do equivalent things for opengl libraries.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
if you are trying to link with the shared lib, perhaps you should use ´allegro-config --shared´ instead of allegro-config --libs release
</p></div></div><p>
They are equivalent.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Sat, 23 Feb 2008 23:57:29 +0000</pubDate>
	</item>
</rss>
