home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / progs / fortran / Makefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  1.7 KB  |  35 lines

  1. SHELL    = /bin/sh
  2.  
  3. all clean clobber:
  4.     @echo    "\nUNFORTUNATELY,  GLUT's progs/fortran directory doesn't compile on IRIX 6.\n \
  5.  
  6.             This one was very strange: we were seeing  \n \
  7.                  boatloads of errors throughout this directory \n \
  8.                  attempting to compile with libfGL.a (since all \n \
  9.                  the OpenGL Fortran programs in the DT live \n \
  10.             here) of the form,\n \n \
  11. ld: ERROR 33: Unresolved data symbol "glBindTexture" -- 1st referenced by /usr/lib/libfGL.a(libfogl32.o). \n \n \
  12.             These unresolved symbols are OpenGL 1.1 entry \n \
  13.             points, and we don't support 1.1 yet. It turns \n \
  14.             out that libfGL.a has 1.1 bindings, and all \n \
  15.             wrappers are in a single object file. The \n \
  16.             ramification is that calling any fGL routine \n \
  17.             pulls in wrappers for all entry points, including \n \
  18.             the the 1.1 versions of the extensions. Thus, any \n \
  19.             program which links with libfGL.a will have the \n \
  20.             unresolved symbols you encountered. \n \n \
  21.             There are two possible workarounds to this problem. \n \
  22.                 1. If you add "-Wl,-U" to the link line \n \
  23.                    (or just "-U" if you invoke ld directly) \n \
  24.                    you will get an executable. You then must \n \
  25.                     setenv _RLD_ARGS -ignore_unresolved \n \
  26.                    to run the executable. \n \
  27.                 2. You can create a stubs file to resolve \n \
  28.                    the missing entry points. They will \n \
  29.                    (should) never be called, so all it does \n \
  30.                    is make the linker happy. \n \n \
  31.             For the present, we include the source for people \n \
  32.             still running IRIX 5, but for those with IRIX 6, \n \
  33.             you will have to resort to one of the above hacks \n \
  34.             if you want to attempt compiles on OpenGL using fortran. \n \n"
  35.