From: "Andrew Crabtree" Newsgroups: comp.os.msdos.djgpp Subject: Re: 99% sure bug.But i dunno if it's allegro or djgpp's fault.. Date: Thu, 30 Oct 1997 13:34:54 -0800 Organization: Hewlett Packard Lines: 19 Message-ID: <63auhv$f84$1@rosenews.rose.hp.com> References: <199710301806 DOT TAA02169 AT free DOT polbox DOT pl> NNTP-Posting-Host: ros51675cra.rose.hp.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Robert Darmochwa³ wrote in message <199710301806 DOT TAA02169 AT free DOT polbox DOT pl>... the 1% got you >everything seems t be ok, but when i ling gcc -g main.c liballeg.a foo.o, >after compiling foo.c off course (gcc -c foo.c) >gcc says: unresolved external play_memory_fli... the linker disregards library files if there are no externals they resolve. Just move the library to the end of the line (and specify it with -l perconvention) Your command line should be gcc -g main.c foo.o -lalleg Andy