From: Andrew Crabtree Message-Id: <199705201808.AA186331725@typhoon.rose.hp.com> Subject: Re: Newbie question: Linking in RHide To: aborghgr AT eduserv2 DOT rug DOT ac DOT be (Alexander Borghgraef) Date: Tue, 20 May 1997 11:08:45 PDT Cc: djgpp AT delorie DOT com In-Reply-To: <33814CF5.F50@eduserv2.rug.ac.be>; from "Alexander Borghgraef" at May 20, 97 9:04 am Precedence: bulk > gxx file.cc -o file.exe -lalleg > after having put allegro.h in the INCLUDE directory and liballeg.a in > the LIB directory. What I don't know is how to do this for several > files, or how to do this in RHide. I've tried "Build All" but it > produced the error messages "undefined reference" for every allegro > routine, (and some of the other routines I defined in one of the *.h > files, but that's probably another problem) and before you ask,yes, > every file that contains allegro routines also contains the line > #include Typically, more a multi-file project the actual compile passes will look like this. gcc -c file1.c gcc -c file2.c gcc -c file3.c gcc -c ... then ld -o my.exe file1.o file2.o file3.o ... -lalleg In rhide, you specify this by using the libraries menu from Options. Just put alleg in one of the spots and check the box next to it. Andrew