HP3000-L Archives

December 2002, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 31 Dec 2002 13:59:45 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
Goetz Neumann wrote:
>
> Jeff Kell wrote:
> > Trying to rebuild an XL file of several C/iX routines and some Splash!
> > I think I'm missing something obvious (haven't done this in awhile):
> >
> > LinkEd> buildxl xlutc
> >
> > LinkEd> addxl from=utcxlrl,esputil.o,xdsutil.o,^ccstdrl.lib;merge;share
> > 1 OBJECT FILE HAS BEEN ADDED.
> >
> > LinkEd> exit
> >
> > (TERMNET.SYS): run showbase.pub;xl='xlutc.termnet'
> > UNRESOLVED EXTERNALS: _tolower  (LDRERR 512)
> > UNRESOLVED EXTERNALS: _toupper  (LDRERR 512)
>
> Did you recompile any of the above ?
> If so, maybe you missed a '-D_MPEXL_SOURCE' compile flag ?

Never messed with no steeenkin flags with the old MPE C code before.
It had always worked, at least up through 5.5.

But Goetz is correct, essentially.  You must declare _MPEXL_SOURCE
either in your ccopts variable or pass it as info to the C compiler,
even for plain old never-bothered-before C code.

It boils down to CTYPE.H.SYS, the end of which includes:

61     #  ifdef _MPEXL_SOURCE
62     #    ifndef __lint
63     #      define isascii(__c)            ((unsigned) (__c)<=0177)
64     #      define _toupper(__c)           ((__upshift)[__c]&0377)
65     #      define _tolower(__c)           ((__downshift)[__c]&0377)
66     #      define toascii(__c)            ((__c)&0177)
67     #    endif /* __lint */
68     #  endif /* _MPEXL_SOURCE */
69     #endif /* _CTYPE_INCLUDED */

I know this stuff worked before, I promise!  The only change was to a
departmental table (added a new one).

Anyway, thanks for the pointer Goetz.

Jeff

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2