Mail Archives: djgpp/1998/01/05/16:03:16
Juuso Santeri Vilmunen wrote:
>
> I tried to make program with Allegro and compiled in command prompt.
>
> i use -lalleg switch and got error that "-lalleg no such file in
> directory" ... what's the problem...
>
> thnks ,,,
Did you run make from the Allegro base directory? This compiles Allegro
and places the library in %DJDIR%/allegro/lib/djgpp. I don't remember
if the make file automatically copies it to %DJDIR%/lib, but that's
where liballeg.a needs to be for gcc to find it by using the -l switch.
If it's not there, copy liballeg.a from %DJDIR%/allegro/lib/djgpp to
%DJDIR%/lib. For example, assuming you installed the compiler under
/djgpp and installed Allegro under /djgpp/allegro:
copy /djgpp/allegro/lib/djgpp/liballeg.a /djgpp/lib
Then you should be able to link in Allegro with gcc's -l switch like
you've mentioned above.
--
Tony O'Bryan
http://www.geocities.com/SiliconValley/Park/7201
- Raw text -