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

質問編集履歴

2

文章を修正

2021/10/03 23:59

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
 
8
8
 
9
+ 参考サイト:[https://askubuntu.com/questions/1098073/g-fails-with-an-undefined-reference-to-symbol-dlcloseglibc-2-2-5-even-with](https://askubuntu.com/questions/1098073/g-fails-with-an-undefined-reference-to-symbol-dlcloseglibc-2-2-5-even-with)
10
+ 参考サイト:[https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2](https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2)
11
+ 参考サイト:[https://stackoverflow.com/questions/45135/why-does-the-order-in-which-libraries-are-linked-sometimes-cause-errors-in-gcc](https://stackoverflow.com/questions/45135/why-does-the-order-in-which-libraries-are-linked-sometimes-cause-errors-in-gcc)
9
12
 
10
- 参考サイト: [https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2](https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2)
11
13
 
12
-
13
-
14
14
  ```
15
15
  $ make
16
16
  g++ obj/Ellipse.o obj/Line.o obj/Transform_2D.o obj/Circle.o obj/Rectangle.o obj/Triangle.o obj/Window.o obj/Camera.o obj/Main.o obj/Init.o obj/Resource.o obj/Text.o obj/Shader.o obj/Help.o obj/Point.o obj/Render.o obj/FrameWork.o obj/Simple_Draw.o -o GL -lGL -lGLEW -lglfw3 -L/usr/local/lib -lfreetype

1

文章を修正

2021/10/03 23:59

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,12 @@
1
1
  提示コードですがmakeを実行すると以下のエラーが出ますこれはなぜでしょうか?参考サイトを参考にライブラリの順序を確認しまたが正しいです。
2
2
  `adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status`とはどういう意味なのでしょうか?
3
3
 
4
+ # 試したこと
5
+ 参考サイトを参考にライブラリの順序を確認
4
6
 
7
+
8
+
9
+
5
10
  参考サイト: [https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2](https://discourse.panda3d.org/t/solved-undefined-ref-pthread-getspecific-glibc-2/15283/2)
6
11
 
7
12