teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

エラー文全文

2021/04/15 15:01

投稿

sudo-san
sudo-san

スコア5

title CHANGED
File without changes
body CHANGED
@@ -4,9 +4,91 @@
4
4
 
5
5
  ### 発生している問題・エラーメッセージ
6
6
 
7
- g++ hello-glfw.cpp -lglfw-framework Cocoa -framework OpenGL -framework IOKit-framework CoreVideoWno-deprecated-declarations
7
+ g++ hello-glfw.cpp -lglfw -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -Wno-deprecated-declaration
8
- clang: error: no such file or directory: 'Cocoa'
9
- clang: error: no such file or directory: 'CoreVideo–Wno-deprecated-declarations'
8
+ warning: unknown warning option '-Wno-deprecated-declaration'; did you mean
9
+ '-Wno-deprecated-declarations'? [-Wunknown-warning-option]
10
+ hello-glfw.cpp:7:2: warning: 'glClear' is deprecated: first deprecated in macOS
11
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
12
+ these warnings) [-Wdeprecated-declarations]
13
+ glClear(GL_COLOR_BUFFER_BIT);
14
+ ^
15
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note:
16
+ 'glClear' has been explicitly marked deprecated here
17
+ extern void glClear (GLbitfield mask) OPENGL_DEPRECATED(10.0, 10.14);
18
+ ^
19
+ hello-glfw.cpp:8:2: warning: 'glClearColor' is deprecated: first deprecated in
20
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
21
+ silence these warnings) [-Wdeprecated-declarations]
22
+ glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
23
+ ^
24
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2396:13: note:
25
+ 'glClearColor' has been explicitly marked deprecated here
26
+ extern void glClearColor (GLclampf red, GLclampf green, GLclampf blue, G...
27
+ ^
28
+ hello-glfw.cpp:9:2: warning: 'glColor3f' is deprecated: first deprecated in
29
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
30
+ silence these warnings) [-Wdeprecated-declarations]
31
+ glColor3f(0.0f, 0.6f, 0.2f);
32
+ ^
33
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2405:13: note:
34
+ 'glColor3f' has been explicitly marked deprecated here
35
+ extern void glColor3f (GLfloat red, GLfloat green, GLfloat blue) OPENGL_...
36
+ ^
37
+ hello-glfw.cpp:10:2: warning: 'glBegin' is deprecated: first deprecated in macOS
38
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
39
+ these warnings) [-Wdeprecated-declarations]
40
+ glBegin(GL_POLYGON);
41
+ ^
42
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2385:13: note:
43
+ 'glBegin' has been explicitly marked deprecated here
44
+ extern void glBegin (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
45
+ ^
46
+ hello-glfw.cpp:11:2: warning: 'glVertex2f' is deprecated: first deprecated in
47
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
48
+ silence these warnings) [-Wdeprecated-declarations]
49
+ glVertex2f(-0.9f, -0.9f);
50
+ ^
51
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
52
+ 'glVertex2f' has been explicitly marked deprecated here
53
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
54
+ ^
55
+ hello-glfw.cpp:12:2: warning: 'glVertex2f' is deprecated: first deprecated in
56
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
57
+ silence these warnings) [-Wdeprecated-declarations]
58
+ glVertex2f(0.9f, -0.9f);
59
+ ^
60
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
61
+ 'glVertex2f' has been explicitly marked deprecated here
62
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
63
+ ^
64
+ hello-glfw.cpp:13:2: warning: 'glVertex2f' is deprecated: first deprecated in
65
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
66
+ silence these warnings) [-Wdeprecated-declarations]
67
+ glVertex2f(0.9f, 0.9f);
68
+ ^
69
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
70
+ 'glVertex2f' has been explicitly marked deprecated here
71
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
72
+ ^
73
+ hello-glfw.cpp:14:2: warning: 'glVertex2f' is deprecated: first deprecated in
74
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
75
+ silence these warnings) [-Wdeprecated-declarations]
76
+ glVertex2f(-0.9f, 0.9f);
77
+ ^
78
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
79
+ 'glVertex2f' has been explicitly marked deprecated here
80
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
81
+ ^
82
+ hello-glfw.cpp:15:2: warning: 'glEnd' is deprecated: first deprecated in macOS
83
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
84
+ these warnings) [-Wdeprecated-declarations]
85
+ glEnd();
86
+ ^
87
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2474:13: note:
88
+ 'glEnd' has been explicitly marked deprecated here
89
+ extern void glEnd (void) OPENGL_DEPRECATED(10.0, 10.14);
90
+ ^
91
+ 10 warnings generated.
10
92
 
11
93
  ### 該当のソースコード
12
94
 

1

2021/04/15 15:01

投稿

sudo-san
sudo-san

スコア5

title CHANGED
File without changes
body CHANGED
File without changes