Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!hsdndev!cmcl2!acf5!sabbagh From: sabbagh@acf5.NYU.EDU (sabbagh) Newsgroups: comp.sys.sgi Subject: Re: Reply to "I think I'm going to go insane!" Message-ID: <1611@acf5.NYU.EDU> Date: 6 Jun 91 19:22:22 GMT References: <9105311806.AA22621@mwunix.mitre.org> Organization: New York University Lines: 40 m19730@MWVM.MITRE.ORG ("Carla X. Gladstone") writes: >Ranjan, Even though I don't have C++ experience on the iris, I do know what >ERR_BADWINDOW signifies: it usually means that when calling ortho one or more >of the left-right, bottom-top, or near-far pairs has been switched. >There exists a list from the SG Customer Support Division which gives a >cryptic listing of all the GL error messages. I recommend trying to get hold >of a copy. >* * >| Carla (703) 883-6861 | >*---------------------------------------------------------------* This is usually the problem when calling from C, but from C++ the real problem is that you must provide -acpp -prototypes as flags to CC (which then passes them on to cc). There are some ramifications once you start doing this, which you must do for all C++ programs. I have found that iostream operators break with floats; you must cast them to double like this: float aFloatVar = 1.0e0; cout << (double) aFloatVar; I believe that you must recompile the libraries when you have provided these flags. Hadil G. Sabbagh E-mail: sabbagh@cs.nyu.edu Voice: (212) 998-3125 Snail: Courant Institute of Math. Sci. 251 Mercer St. New York,NY 10012 "Injustice anywhere is a threat to justice everywhere." - Martin Luther King, Jr. Disclaimer: This is not a disclaimer.