Path: utzoo!utgpu!watmath!watcgl!jdchrist From: jdchrist@watcgl.waterloo.edu (Dan Christensen) Newsgroups: comp.sys.sgi Subject: Re: NeWS <-> C interface Message-ID: <10620@watcgl.waterloo.edu> Date: 11 Jul 89 03:38:37 GMT References: Reply-To: jdchrist@watcgl.waterloo.edu (Dan Christensen) Distribution: na Organization: Computer Graphics Lab, University of Waterloo Lines: 29 In article pel@unhd.UUCP (Paul E. Leclerc) writes: > >We recently received a Personal Iris workstation and I am interested >in getting NeWS and C hooked together to provide a nice >user interface. I typed in one of the examples in the 4Sight User's >Guide (pages N8-10/11) and after fixing the few typos (in the manual!!) >I got it compiled. When I run it, ie a.out, nothing happens. Am >I doing something wrong? > >On a related note... Does anybody have a WORKING version of >a demo that interfaces C and NeWS (using CPS) that would have >things like buttons,cycles,prompts, etc. I am trying to >port/rehack Sunview code that we have written. All I really >need is one tiny working example of each so that I can play >with it a little.... (I cannot ftp for any goodies, sorry). I was able to get this working. The trick was to put -lbsd at the end of the compile line. I don't think that this is mentioned in the manual but it seems to be necessary. A problem I have been having is that I can't use -lgl and -lcps at the same time -- I get several pages of error messages if I try. I just called the hotline today so I may get an answer soon. Hope this helps! ---- Dan Christensen, Computer Graphics Lab, jdchrist@watcgl.uwaterloo.ca University of Waterloo, Waterloo, Ont. jdchrist@watcgl.waterloo.edu