cannot find -lpdcurses, even though it's in the same folder

DOS specific questions.
Post Reply
fbHiThere
Posts: 6
Joined: Feb 04, 2022 22:52

cannot find -lpdcurses, even though it's in the same folder

Post by fbHiThere »

Hi,

There's an error, when trying to compile the curses.bas example, that the pdcurses library isn't found.

pdcurses.bi is in the \FreeBas\inc\curses folder.

curses.bi is in the \FreeBas\inc folder.

Both of these are pointed to, with the INCLUDE variable.

Also, temporarily, I tried putting both curses.bi and pdcurses.bi in the same folder as he sample curses.bas.

ld: cannot find -lpdcurses

BEFORE it says that this library can't be found, it complains about line 232 in pdcurses.bi (which means that the library actually WAS found),

Code: Select all

	extern SP as SCREEN_ ptr
, a warning that a reserved global or backend symbol SP is being used here.

In any case, curses.bas it won't compile to an executable.
SARG
Posts: 1756
Joined: May 27, 2005 7:15
Location: FRANCE

Re: cannot find -lpdcurses, even though it's in the same folder

Post by SARG »

Bi files are not libraries they are source code files where mostly define/declare are stored. They also could contain real code like bas files.

Libraries are executable elements linked with your main code when compiled and then called by your program.
Check if they exist in your DOS setup.

SP is an ASM keyword so it's preferably not to be used to avoid some problems when assembling.
Not exhaustive list :

Code: Select all

@"dl", @"di", @"si", @"cl", @"bl", @"al", _
@"bp", @"sp", @"dx", @"cx", @"bx", @"ax", _
@"edx", @"edi", @"esi", @"ecx", @"ebx", @"eax", @"ebp", @"esp", _
@"st", @"cs", @"ds", @"es", @"fs", @"gs", @"ss"
fbHiThere
Posts: 6
Joined: Feb 04, 2022 22:52

Re: cannot find -lpdcurses, even though it's in the same folder

Post by fbHiThere »

Ok, thanks for the clarification, Sarg.

Now all I need is to locate the pdcurses library. Not sure if this is lib or a, but probably a.
exagonx
Posts: 314
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: cannot find -lpdcurses, even though it's in the same folder

Post by exagonx »

fbHiThere wrote: Feb 05, 2022 14:44 Hi,

There's an error, when trying to compile the curses.bas example, that the pdcurses library isn't found.

pdcurses.bi is in the \FreeBas\inc\curses folder.

curses.bi is in the \FreeBas\inc folder.

Both of these are pointed to, with the INCLUDE variable.

Also, temporarily, I tried putting both curses.bi and pdcurses.bi in the same folder as he sample curses.bas.

ld: cannot find -lpdcurses

BEFORE it says that this library can't be found, it complains about line 232 in pdcurses.bi (which means that the library actually WAS found),

Code: Select all

	extern SP as SCREEN_ ptr
, a warning that a reserved global or backend symbol SP is being used here.

In any case, curses.bas it won't compile to an executable.
PDCurses is a public domain curses library for DOS, OS/2, Windows console, X11 and SDL, implementing most of the functions available in X/Open and System V R4 curses. It supports many compilers for these platforms. The X11 port lets you recompile existing text-mode curses programs to produce native X11 applications.

you can download the PDCurses here then compile the library using DJGPP
https://github.com/wmcbrine/PDCurses/releases/tag/3.9
fbHiThere
Posts: 6
Joined: Feb 04, 2022 22:52

Re: cannot find -lpdcurses, even though it's in the same folder

Post by fbHiThere »

Thanks, exagonx.
NorbyDroid
Posts: 70
Joined: May 21, 2016 22:55

Re: cannot find -lpdcurses, even though it's in the same folder

Post by NorbyDroid »

This may be another issue as I mentioned in a new thread where the DOS filename used is different than the file called in the compiler. I have noticed quite a few filename issues. If this has been solved, please let us know.
marcov
Posts: 3455
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: cannot find -lpdcurses, even though it's in the same folder

Post by marcov »

NorbyDroid wrote: Apr 25, 2022 16:50 This may be another issue as I mentioned in a new thread where the DOS filename used is different than the file called in the compiler. I have noticed quite a few filename issues. If this has been solved, please let us know.
The classic solution is to compile under win9x
Post Reply