Mail Archives: djgpp/1997/05/23/18:18:50
Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com> 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 <allegro.h>
>
> 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
- Raw text -