From: hesslinm AT pigeon DOT qut DOT edu DOT au (hessling mark ) Newsgroups: comp.os.msdos.djgpp Subject: Re: PDCurses problem. Date: 14 Feb 1997 09:58:07 GMT Organization: Queensland University of Technology, Australia Lines: 34 Distribution: world Message-ID: <5e1cvf$srd@dove.qut.edu.au> References: <5e09nt$m3f AT lion DOT cs DOT latrobe DOT edu DOT au> Reply-To: M DOT Hessling AT qut DOT edu DOT au NNTP-Posting-Host: pigeon.qut.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Gregary J Boyles (boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au) wrote: : Using PDCurses22 under djgpp 2.1. : : Problem is gcc won't find the library libcurs.a despite the fact that it : is in the main lib directory (and curses.h in the main include directory). : It make no difference if I include the path to the library file in the -l : option. : gcc -otest.exe test.c -llibcurs : d:/djgpp/bin\ld.exe: cannot open -llibcurs.a: No such file or directory (ENOENT) : So I tried the following but it still doesn't work. This was after I : invoked make with the makefile in the curses src directory and then copied : the resulting library to the main lib directory. : ld test.o -llibcurs.a : D:\DJGPP\BIN/ld.exe: cannot open -llibcurs.a: File in wrong format : What is causing these problems? DJGPP's linker works like most Unix linkers; they assume that libraries start wil "lib". Simply drop the "lib" prefix; ie -lcurs and things should work fine. (I hope I've got this right, I've been using EMX recently, and it doesn't behave this way! ) Cheers, Mark ------------------------------------------------------------------------ Mark Hessling Email: M DOT Hessling AT qut DOT edu DOT au PO Box 203 Phone: +617 3802 0800 Bellara http://www.gu.edu.au/gext/the/markh.html QLD 4507 **** Maintainer PDCurses & REXX/SQL **** Australia ************* Author of THE ************ ------------------------------------------------------------------------