From: "Michiel de Jong" Newsgroups: comp.os.msdos.djgpp Subject: Linking problems Date: 25 May 1997 16:29:52 GMT Organization: World Online Message-ID: <01bc6929$54a052e0$0803a8c0@michiel> NNTP-Posting-Host: asd4-p52.worldonline.nl Lines: 34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Andrew Crabtree wrote in article <199705201808 DOT AA186331725 AT typhoon DOT rose DOT hp DOT com>... > > 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 > > 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 I have exactly the same problem, only not with Allegro but with a Serial Port library that I got from x2ftp.oulu.fi. It is written by Samuel Vincent. With the makefile included with the library a lib**.a file was created. I put this in the LIB directory and put the name of the file in the Library section of rhide. I did exactly the same with the Allegro library (liballeg.a). Now on linking my Allegro function do fine but the Serial Port function all give this error message (undefined refference). I tried many things, among which including the Serial Port source code (which was also included) directly in my project. To no effect! What is my mistake? many thanks, Michiel de Jong