Linking question?

David Jensen djensen at inebraska.com
Tue Sep 28 00:22:57 PDT 2004


John Gay wrote:
> updated, but when I try to compile a simple test program, ld complains:
> 
> root at john:/home/john/src# ldconfig -v|grep alleg
>         liballeg.so.4.0 -> liballeg-4.0.3.so
> john at john:~/src$ ls -l /usr/lib/liballeg*
> /usr/lib/liballeg-4.0.3.so
> /usr/lib/liballeg.so.4.0 -> liballeg-4.0.3.so
> /usr/lib/liballeg_unsharable.a
> 
try as root:
ln -s liballeg.so.4.0.3 /usr/lib/liballeg.so
ldconfig
> 
> #include "allegro.h"
> int main(void)
just use int main()
> {
>         char version[80];
> 
> john at john:~/src$ gcc  project02.c -lalleg
> /usr/bin/ld: cannot find -lalleg
> collect2: ld returned 1 exit status
> 
see above symlink

maybe
-- David Jensne



More information about the blfs-support mailing list