From: gah AT jet DOT es (Grzegorz Adam Hankiewicz) Newsgroups: comp.os.msdos.djgpp Subject: Re: Libraries Date: Fri, 04 Sep 1998 10:01:41 GMT Organization: Gogosoftware Message-ID: <35efb8fd.2925011@news.jet.es> References: <6so094$m0d$1 AT birch DOT prod DOT itd DOT earthlink DOT net> NNTP-Posting-Host: info738.jet.es Lines: 33 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 4 Sep 1998 02:10:04 -0400, "Vadim Pokotilov" wrote: >When I run make it is unable to find the allegro library (which is in the >same dir as the makefile) and gives me several link-time errors. I have to >edit the makefille and change "-lalleg" to "liballeg.a" so it looks like >"gcc file.c -o file.exe liballeg.o". THEN it compiles correctly >(sometimes... sometimes it says "incorrect spacing in makefile" or something >to that extent) First of all, the Allegro library if compiled without problems is placed automatically under the \djgpp\lib dir for the liballeg.a file and under the \djgpp\include dir for the allegro.h file. From then on, when you compile a program wich -lalleg, the compiler looks up in those directory for the file liballeg.a. If you are getting errors with this, it may mean you didn't compile/install properly Allegro or the makefile couldn't somehow copy it to the destination dirs because you didn't configure DJGPP correctly. See if you have set the DJGPP environment variable in your autoexec.bat and that the .env file points to correct dirs. Then recompile Allegro and see if it works with the following commands typed inside the \allegro dir. make uninstall make clean make - Grzegorz Adam Hankiewicz - gah AT jet DOT es - http://web.jet.es/gregorio/ - Gogosoftware - http://welcome.to/gogosoftware/