質問編集履歴

2

エラー文全文

2021/04/15 15:01

投稿

sudo-san
sudo-san

スコア5

test CHANGED
File without changes
test CHANGED
@@ -10,11 +10,175 @@
10
10
 
11
11
 
12
12
 
13
- g++ hello-glfw.cpp -lglfw-framework Cocoa -framework OpenGL -framework IOKit-framework CoreVideoWno-deprecated-declarations
13
+ g++ hello-glfw.cpp -lglfw -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -Wno-deprecated-declaration
14
-
15
- clang: error: no such file or directory: 'Cocoa'
14
+
16
-
17
- clang: error: no such file or directory: 'CoreVideo–Wno-deprecated-declarations'
15
+ warning: unknown warning option '-Wno-deprecated-declaration'; did you mean
16
+
17
+ '-Wno-deprecated-declarations'? [-Wunknown-warning-option]
18
+
19
+ hello-glfw.cpp:7:2: warning: 'glClear' is deprecated: first deprecated in macOS
20
+
21
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
22
+
23
+ these warnings) [-Wdeprecated-declarations]
24
+
25
+ glClear(GL_COLOR_BUFFER_BIT);
26
+
27
+ ^
28
+
29
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note:
30
+
31
+ 'glClear' has been explicitly marked deprecated here
32
+
33
+ extern void glClear (GLbitfield mask) OPENGL_DEPRECATED(10.0, 10.14);
34
+
35
+ ^
36
+
37
+ hello-glfw.cpp:8:2: warning: 'glClearColor' is deprecated: first deprecated in
38
+
39
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
40
+
41
+ silence these warnings) [-Wdeprecated-declarations]
42
+
43
+ glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
44
+
45
+ ^
46
+
47
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2396:13: note:
48
+
49
+ 'glClearColor' has been explicitly marked deprecated here
50
+
51
+ extern void glClearColor (GLclampf red, GLclampf green, GLclampf blue, G...
52
+
53
+ ^
54
+
55
+ hello-glfw.cpp:9:2: warning: 'glColor3f' is deprecated: first deprecated in
56
+
57
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
58
+
59
+ silence these warnings) [-Wdeprecated-declarations]
60
+
61
+ glColor3f(0.0f, 0.6f, 0.2f);
62
+
63
+ ^
64
+
65
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2405:13: note:
66
+
67
+ 'glColor3f' has been explicitly marked deprecated here
68
+
69
+ extern void glColor3f (GLfloat red, GLfloat green, GLfloat blue) OPENGL_...
70
+
71
+ ^
72
+
73
+ hello-glfw.cpp:10:2: warning: 'glBegin' is deprecated: first deprecated in macOS
74
+
75
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
76
+
77
+ these warnings) [-Wdeprecated-declarations]
78
+
79
+ glBegin(GL_POLYGON);
80
+
81
+ ^
82
+
83
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2385:13: note:
84
+
85
+ 'glBegin' has been explicitly marked deprecated here
86
+
87
+ extern void glBegin (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
88
+
89
+ ^
90
+
91
+ hello-glfw.cpp:11:2: warning: 'glVertex2f' is deprecated: first deprecated in
92
+
93
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
94
+
95
+ silence these warnings) [-Wdeprecated-declarations]
96
+
97
+ glVertex2f(-0.9f, -0.9f);
98
+
99
+ ^
100
+
101
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
102
+
103
+ 'glVertex2f' has been explicitly marked deprecated here
104
+
105
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
106
+
107
+ ^
108
+
109
+ hello-glfw.cpp:12:2: warning: 'glVertex2f' is deprecated: first deprecated in
110
+
111
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
112
+
113
+ silence these warnings) [-Wdeprecated-declarations]
114
+
115
+ glVertex2f(0.9f, -0.9f);
116
+
117
+ ^
118
+
119
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
120
+
121
+ 'glVertex2f' has been explicitly marked deprecated here
122
+
123
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
124
+
125
+ ^
126
+
127
+ hello-glfw.cpp:13:2: warning: 'glVertex2f' is deprecated: first deprecated in
128
+
129
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
130
+
131
+ silence these warnings) [-Wdeprecated-declarations]
132
+
133
+ glVertex2f(0.9f, 0.9f);
134
+
135
+ ^
136
+
137
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
138
+
139
+ 'glVertex2f' has been explicitly marked deprecated here
140
+
141
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
142
+
143
+ ^
144
+
145
+ hello-glfw.cpp:14:2: warning: 'glVertex2f' is deprecated: first deprecated in
146
+
147
+ macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to
148
+
149
+ silence these warnings) [-Wdeprecated-declarations]
150
+
151
+ glVertex2f(-0.9f, 0.9f);
152
+
153
+ ^
154
+
155
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2732:13: note:
156
+
157
+ 'glVertex2f' has been explicitly marked deprecated here
158
+
159
+ extern void glVertex2f (GLfloat x, GLfloat y) OPENGL_DEPRECATED(10.0, 10.14);
160
+
161
+ ^
162
+
163
+ hello-glfw.cpp:15:2: warning: 'glEnd' is deprecated: first deprecated in macOS
164
+
165
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
166
+
167
+ these warnings) [-Wdeprecated-declarations]
168
+
169
+ glEnd();
170
+
171
+ ^
172
+
173
+ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2474:13: note:
174
+
175
+ 'glEnd' has been explicitly marked deprecated here
176
+
177
+ extern void glEnd (void) OPENGL_DEPRECATED(10.0, 10.14);
178
+
179
+ ^
180
+
181
+ 10 warnings generated.
18
182
 
19
183
 
20
184
 

1

2021/04/15 15:01

投稿

sudo-san
sudo-san

スコア5

test CHANGED
File without changes
test CHANGED
File without changes