[Plib-devel] two compiler errors
Brought to you by:
sjbaker
From: Bram S. <br...@ch...> - 2000-05-10 20:35:49
|
Hello, I am having compiler errors on current cvs plib. c++ -DPACKAGE=\"plib\" -DVERSION=\"1.1.11\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -DGLUT_IS_PRESENT=1 -I. -I. -I../../src/sg -I../../src/ul -g -O2 -O6 -Wall -c ssgLoadOBJ.cxx ssgLoadOBJ.cxx: In function `void add_mesh(int)': ssgLoadOBJ.cxx:325: name lookup of `i' changed for new ANSI `for' scoping ssgLoadOBJ.cxx:310: using obsolete binding at `i' make[2]: *** [ssgLoadOBJ.o] Error 1 to fix it, simply move decl of int i out of for-construct. and this one is a bit weird I think, somehow, gcc version 2.95.2 on PPC want a cast on this line: c++ -DPACKAGE=\"plib\" -DVERSION=\"1.1.11\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -DGLUT_IS_PRESENT=1 -I. -I. -I../../src/sg -I../../src/ul -g -O2 -O6 -Wall -c ssgLoadAC.cxx ssgLoadAC.cxx: In function `int do_refs(char *)': ssgLoadAC.cxx:518: conversion from `int' to `enum GLenum' make[2]: *** [ssgLoadAC.o] Error 1 Bram -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Bram Stolk "Linux - Why use windows, if there is a door?" work: br...@sa... priv: br...@ch... |