Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2005 13:13:18 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Andreas Davour <ante@Update.UU.SE>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Where do the linker look for shared libraries?
Message-ID:  <20050302191318.GA77052@dan.emsphone.com>
In-Reply-To: <Pine.LNX.4.62.0503021922580.8625@Psilocybe.Update.UU.SE>
References:  <Pine.LNX.4.62.0503021922580.8625@Psilocybe.Update.UU.SE>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 02), Andreas Davour said:
> I've tried to compile and link a small game written with the Allegro
> API. For some odd reason the linker just don't understand how to
> resolve the symbols in the library. It just can't accept that the
> library is in a ".so" file and not an ".a" archive, and even when I
> point it out explicitly it still don't get it.
> 
> This is my commandline:
> 
> gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ -L/usr/local/lib/ -lalleg
> 
> and the errors I get looks like this:
> 
> /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8'
> /usr/local/lib//liballeg.so: undefined reference to `_poly_scanline_atex_mask_lit32'

This is the linker saying "there are symbols in liballeg.so that I
cannot find anywhere".  Maybe you need to specify another library along
with liballeg?  Are you using the allegro port?

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050302191318.GA77052>