Mail Archives: djgpp/1997/02/15/06:47:30
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 ************
------------------------------------------------------------------------
- Raw text -