ogl-sample
[Top] [All Lists]

[ogl-sample] Compiling libGLU on Irix-6.5 with gcc-2.95

To: ogl-sample@xxxxxxxxxxx
Subject: [ogl-sample] Compiling libGLU on Irix-6.5 with gcc-2.95
From: Wolfram Gloger <Wolfram.Gloger@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 3 Feb 2000 18:37:27 +0100 ("MET)
Reply-to: ogl-sample@xxxxxxxxxxx
Sender: owner-ogl-sample@xxxxxxxxxxx
Hello,

Recently, I got stuck developing an OpenGL application on Irix 6.5
with gcc, because /usr/lib32/libGLU.so brings in libC.so, which
clashes with libstdc++.so (as supplied by gcc).  The results where
crashes even before main was reached (the global cin and cout objects
are messed up).

Now, thanks to the sample impl. release, I seem to have succeeded in
building _with gcc-2.95_ my own libGLU.so depending only on libstdc++
(not libC), and my app runs fine ! :-) (So far just limited testing,
though.)

One trivial patch is appended below; with this the compile of libGLU
runs through even with `c++ -ansi' as the C++ compiler.

Would I be allowed to distribute the resulting libGL.so binary as a
service to other gcc users on Irix 6.5?

Regards,
Wolfram.

diff -ur main/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc 
main.wg/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc
--- main/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc     Wed Jan 26 11:30:46 2000
+++ main.wg/gfx/lib/glu/libnurbs/nurbtess/monoChain.cc  Thu Feb  3 17:18:47 2000
@@ -82,7 +82,7 @@
 }
 
 //compare the heads of the two chains
-static compChainHeadInY(monoChain* mc1, monoChain* mc2)
+static int compChainHeadInY(monoChain* mc1, monoChain* mc2)
 {
   return compV2InY(mc1->getHead()->head(), mc2->getHead()->head());
 }

<Prev in Thread] Current Thread [Next in Thread>