[comp.windows.x] Prototypes for Text Widget functions

harperb@frith.msu.edu (Brett Harper) (08/10/90)

I have been trying to use some of the Text widget functions, like:
XawTextReplace(), and so forth.  But I am having trouble using them.
I am compiling my application with g++ and since all called procedures need
prototypes I get an error like:

Text.h:254: too many arguments to function `int XawTextReplace ()'

This is because the function was 'prototyped' with zero arguments. In Text.h
I noticed that all the prototypical stuff is commented out.  As if it could
be there but just isn't.  Anyone know how I can make use of these functions
using g++?

Thanks, 
Brett Harper
harperb@frith.egr.msu.edu

swick@ATHENA.MIT.EDU (Ralph Swick) (08/10/90)

    I noticed that all the prototypical stuff is commented out.  As if it could
    be there but just isn't.  Anyone know how I can make use of these functions
    using g++?

Until we debug and send out the full prototypes for Xaw, you'll
have to use -fno-strict-prototype