Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!news.larc.nasa.gov!mris.larc.nasa.gov!jka From: jka@mris.larc.nasa.gov (J. Keith Alston) Newsgroups: comp.windows.x.motif Subject: Re: illegal pointer/int combination Message-ID: <1991May23.122904.4134@news.larc.nasa.gov> Date: 23 May 91 12:29:04 GMT References: <1991May22.172108.3805@news.larc.nasa.gov> Sender: news@news.larc.nasa.gov (USENET Network News) Distribution: na Organization: NASA Langley Research Center, Hampton, VA USA Lines: 23 In article <1991May22.172108.3805@news.larc.nasa.gov> jka@mris.larc.nasa.gov (J. Keith Alston) writes: >Greetings, > on compilation of a MOTIF program I get the following warning, > > "program.c",line 65:warning:illegal pointer/integer combination,op= > > line 65 in the program is, > menubar=XmCreateMenuBar(form,"menubar",wargs,n); > > menubar is defined as a Widget. > does anyone out there know what this error is caused by or how I can > get rid of it. I guess XmCreateMenuBar is generating an integer value > and menubar is a pointer type? Also how can I specify the width of > the menubar. specifying XmNwidth doesn't seem to work. > Thanks to all the people who responded to this question. I've added the required header files and that solved the problem -- "In this world you must be OH so smart or OH so pleasant... I recommend pleasant"----> Elwood P. Dowd Lockheed Eng. and Sci. Co./Nasa Larc|J. Keith Alston jka@snow.larc.nasa.gov