Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!caen!ox.com!umich!umeecs!news-server!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.sys.sgi Subject: I think I'm going to go insane! Message-ID: Date: 31 May 91 15:28:27 GMT Sender: usenet@zip.eecs.umich.edu (Mr. News) Organization: Recreational Creationists, Inc. Lines: 37 Hi. I'm working on a graphics project on an sgi, and have been trying to use C++ (AT&T, until I build g++) for a system that works with the 4sight graphics calls. It's not working. Assuming that I have a "normal" set-up, I took the program ocatahedron, found in ~4Dgifts/examples/glpg/ch02/octahedron.c, which works fine when compiled with cc and the required libraries, and compiled it with CC (the C++ compiler). I get a blank window, and "ERROR #4 ortho: ERR_BADWINDOW" on my tty. I'm assuming that this is a bad thing, since I don't know where documentation for error messages goes. I snagged the C file, translated by cfront, did some sed'ing to minimize the differences between the two files, commented out the call to _main(), compiled with cc, and the problem is still there. As far as I can tell, there aren't any differences between the two files. I put absolute paths in the #includes, to make sure the same headers were getting included, and such, changed the variables back to the way they were originally, and as far as I can tell, the only differences between the original main(), and the cfronted main() is tabs, and resolved macros. I still get errors and a blank window. Help? Does anyone have C++ code using gl calls which works? -rj -- -------------------------------------------------------------------------------- Ranjan Bagchi - asleep...... | v,i,j,k,l,s,a[99]; bagchi@eecs.umich.edu | main() { ------------------------------- for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i=s*k&&++a[--i]) ; } /* Osovlanski and Nissenbaum */ --------------------------------------------------------------------------------