Mail Archives: djgpp/1996/10/21/18:38:04
cs19 AT cityscape DOT co DOT uk (BDC Client Team) writes:
>I have just downloaded djgpp2 and rhide and am trying to learn how to use
>it. If I compile basic programs (hello world, etc) that use the standard
>libraries (stdio, etc) rhide will happily compile and link them. However,
>I also downloaded the allegro library, and when I try to compile the example
>programs from within rhide, they compile o.k. but during the linking stage
>I get undefined reference to xxx, where xxx is one of the allegro functions.
>I have copied liballeg.a into my /lib subdirectory and have copied allegro.h
>into my include directory.
I'm very new with DJGPP too, so this might not help.
In the IDE, click on OPTIONS...LIBRARIES. This is where you tell RHIDE
what libraries to link in. You specify the library by putting what comes
after the "lib" and before the ".a". So, to link the allegro library, you
would put "alleg" on one of the lines (and be sure the check-box is
checked).
That SHOULD work.
Please note one other problem I had working with RHIDE. It expects the
filenames to be case-sensitive. (This becomes a problem with Windows95).
If you have a file in your project called "MY_FILE.CPP" it won't compile
it because it does not recognize the extension "CPP" (all CAPS). However,
if you re-name it "my_file.cpp" or even "MY_FILE.cpp", it will work. It
took me a while to figure that one out.
- Raw text -