m19730@MWVM.MITRE.ORG ("Carla X. Gladstone") (06/01/91)
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 |
*---------------------------------------------------------------*
sabbagh@acf5.NYU.EDU (sabbagh) (06/07/91)
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.
uh311ae@sunmanager.lrz-muenchen.de (Henrik Klagges) (06/12/91)
Hello, I used C++ and GL a lot, without having problems. The only thing which still is unnerving me is the fact that the linker depends on the order- ing of the library files. I thought such multiple-name problems should be cured by C++. Cheers, Rick@vee.lrz-muenchen.de