error: changes meaning of ‘format’ from ‘enum gli::format’ [-fpermissive]

Hello forum,

I am not getting exactly what the error means . It is as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

sajjad@sajjad-G74Sx:~/Documents/Books/OpenGL/ShaderCookBook/glslcookbook-master/examples/chapter04$ make
mkdir -p LinuxRelease
g++ -c -O -I. -I../../ingredients/Includes -I/home/sajjad/Downloads/GLM -I/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0 -DPLATFORM_Linux main.cpp -o LinuxRelease/main.o
g++ -c -O -I. -I../../ingredients/Includes -I/home/sajjad/Downloads/GLM -I/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0 -DPLATFORM_Linux scenealphatest.cpp -o LinuxRelease/scenealphatest.o
In file included from /home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/gli.hpp:42:0,
                 from scenealphatest.cpp:7:
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/storage.hpp:89:28: error: declaration of ‘gli::storage::format_type gli::storage::format() const’ [-fpermissive]
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/format.hpp:36:9: error: changes meaning of ‘format’ from ‘enum gli::format’ [-fpermissive]
In file included from /home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/gli.hpp:45:0,
                 from scenealphatest.cpp:7:
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/texture2d.hpp:71:24: error: declaration of ‘gli::texture2D::format_type gli::texture2D::format() const’ [-fpermissive]
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/format.hpp:36:9: error: changes meaning of ‘format’ from ‘enum gli::format’ [-fpermissive]
In file included from /home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/gli.hpp:46:0,
                 from scenealphatest.cpp:7:
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/texture2d_array.hpp:72:24: error: declaration of ‘gli::texture2DArray::format_type gli::texture2DArray::format() const’ [-fpermissive]
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/format.hpp:36:9: error: changes meaning of ‘format’ from ‘enum gli::format’ [-fpermissive]
In file included from /home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/gli.hpp:47:0,
                 from scenealphatest.cpp:7:
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/texture3d.hpp:71:24: error: declaration of ‘gli::texture3D::format_type gli::texture3D::format() const’ [-fpermissive]
/home/sajjad/Downloads/OpenGL/GLI/gli-0.4.0/gli/./core/format.hpp:36:9: error: changes meaning of ‘format’ from ‘enum gli::format’ [-fpermissive]
make: *** [scenealphatest.o] Error 1
sajjad@sajjad-G74Sx:~/Documents/Books/OpenGL/ShaderCookBook/glslcookbook-master/examples/chapter04$ 




Any explanation ?


Regards
Sajjad
Topic archived. No new replies allowed.