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

質問編集履歴

2

エラーの追記

2021/06/08 05:53

投稿

vamos
vamos

スコア2

title CHANGED
File without changes
body CHANGED
@@ -57,4 +57,11 @@
57
57
  ```
58
58
 
59
59
  エラー
60
+ gcc kadai1.c -lSDL2 -lSDL2_gfx -lSDL2_ttf -lSDL2_image -lSDL2_mixer -L/UI1 -I/usr/local/include/SDL2 -Wl,-rpath,/usr/local/lib
61
+ kadai1.c: In function ‘main’:
62
+ kadai1.c:39:5: warning: implicit declaration of function ‘SDL_filledCircleColor’ [-Wimplicit-function-declaration]
63
+ SDL_filledCircleColor(renderer, 200, 200, 50, 0x00ff00ff);
64
+ ^
65
+ /tmp/ccYdAjmQ.o: 関数 `main' 内:
66
+ kadai1.c:(.text+0x15f): `SDL_filledCircleColor' に対する定義されていない参照です
60
- too few aguments to function SDL_SetRenderDrawColor
67
+ collect2: error: ld returned 1 exit status

1

エアーを追記しました

2021/06/08 05:53

投稿

vamos
vamos

スコア2

title CHANGED
File without changes
body CHANGED
@@ -1,3 +1,5 @@
1
+ ```ここに言語を入力
2
+ コード
1
3
  int main(int argc, char *argv[])
2
4
  {
3
5
  int i;
@@ -50,4 +52,9 @@
50
52
  SDL_Quit(); // SDL使用の終了
51
53
 
52
54
  return 0;
53
- }
55
+ }
56
+
57
+ ```
58
+
59
+ エラー
60
+ too few aguments to function SDL_SetRenderDrawColor