質問編集履歴

1

エラーメッセージが一部だったので修正しました。

2020/10/10 02:41

投稿

emilio
emilio

スコア15

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,58 @@
13
13
 
14
14
 
15
15
  ```
16
+
17
+ test2.cpp:26:9: warning: 'glClear' is deprecated: first deprecated in macOS
18
+
19
+ 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
20
+
21
+ these warnings) [-Wdeprecated-declarations]
22
+
23
+ glClear(GL_COLOR_BUFFER_BIT);
24
+
25
+ ^
26
+
27
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note:
28
+
29
+ 'glClear' has been explicitly marked deprecated here
30
+
31
+ extern void glClear (GLbitfield mask) OPENGL_DEPRECATED(10.0, 10.14);
32
+
33
+ ^
34
+
35
+ 1 warning generated.
36
+
37
+ Undefined symbols for architecture x86_64:
38
+
39
+ "_glfwCreateWindow", referenced from:
40
+
41
+ _main in test2-2135b6.o
42
+
43
+ "_glfwInit", referenced from:
44
+
45
+ _main in test2-2135b6.o
46
+
47
+ "_glfwMakeContextCurrent", referenced from:
48
+
49
+ _main in test2-2135b6.o
50
+
51
+ "_glfwPollEvents", referenced from:
52
+
53
+ _main in test2-2135b6.o
54
+
55
+ "_glfwSwapBuffers", referenced from:
56
+
57
+ _main in test2-2135b6.o
58
+
59
+ "_glfwTerminate", referenced from:
60
+
61
+ _main in test2-2135b6.o
62
+
63
+ "_glfwWindowShouldClose", referenced from:
64
+
65
+ _main in test2-2135b6.o
66
+
67
+ ld: symbol(s) not found for architecture x86_64
16
68
 
17
69
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
18
70