On Wed, 5 Jan 2000, Mike Bledig wrote:
> Ok! yea! All most there! :-)
>
> I've used bc5.0 to tri and compile the Lynx source. But during the
> linking stage, I get the following errror:
> Error: Unresolved external '_current_codepage' referenced from
> module src/lycurses.c
> Error: Unresolved external '_errno' referenced from module gzio.c
>
> ** error 1 ** deleting lynx.exe
>
> Original messsage
> From: Hiroyuki Senshu <[EMAIL PROTECTED]>
> Date sent: Wed, 05 Jan 2000 19:42:34 +0900
> To: [EMAIL PROTECTED]
>
> > This is because it is the form which isn't supported in Bcc32 ver
> > 4.x(?) .
> >
> > #if 0 ... #endif is to try to surround it at present with Lynx
> > because w32_strerror() isn't being used.
> >
> > __Hiroyuki
> >
>
The 'current_codepage' is referenced in the following code fragement in
LYCurses.c:
#if defined(WIN_EX) && defined(CJK_EX) /* 1999/08/26 (Thu) 17:53:38 */
{
extern int current_codepage; /* PDCurses lib. */
if (current_codepage == 932)
LYcols = COLS - 1;
}
#endif
Just hide this fragment from compiler - eg change 1st line to
#if 0 && defined(WIN_EX) && defined(CJK_EX) /* 1999/08/26 (Thu) 17:53:38 */
You don't need this fragment.
As for _errno - I haven't encountered this problem (I used BCB 3.0).
Does borland C 5.0 has <errno.h>?
If yes, then (this is my guess) modify zutil.h
to include <errno.h> unconditionally. By default, it contains:
#ifdef NO_ERRNO_H
extern int errno;
#else
# include <errno.h>
#endif
and it looks like NO_ERRNO_H is definied for some reason.
HTH
Best regards,
-Vlad