質問編集履歴
2
エラーメッセージを更新しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,11 +30,10 @@
|
|
30
30
|
### 発生している問題・エラーメッセージ
|
31
31
|
|
32
32
|
```
|
33
|
-
C:\Users\zeroc\work\envClang>mingw32-make -f Makefile
|
33
|
+
C:\Users\zeroc\work\envClang>mingw32-make -f Makefile
|
34
|
-
gcc -I./src -o src/testPow.o -c src/testPow.c
|
35
34
|
gcc -c -o mainC.o mainC.c
|
36
35
|
mainC.c:3:10: fatal error: testAdd.h: No such file or directory
|
37
|
-
3 | #include
|
36
|
+
3 | #include "testAdd.h"
|
38
37
|
| ^~~~~~~~~~~
|
39
38
|
compilation terminated.
|
40
39
|
<builtin>: recipe for target 'mainC.o' failed
|
1
mainC.cについて追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -89,6 +89,30 @@
|
|
89
89
|
$(RM) $(OBJS)
|
90
90
|
```
|
91
91
|
|
92
|
+
### mainC.c
|
93
|
+
```c
|
94
|
+
//sample code c
|
95
|
+
#include <stdio.h>
|
96
|
+
#include "testAdd.h"
|
97
|
+
#include "testPow.h"
|
98
|
+
|
99
|
+
int main(void)
|
100
|
+
{
|
101
|
+
double a = 3;
|
102
|
+
double b = 2;
|
103
|
+
double ret1,ret2;
|
104
|
+
|
105
|
+
ret1 = testAdd(a,b);
|
106
|
+
ret2 = testPow(a,b);
|
107
|
+
|
108
|
+
// check
|
109
|
+
printf("ret1 = %.2f, ret2 = %.2f",ret1,ret2);
|
110
|
+
|
111
|
+
return 0;
|
112
|
+
}
|
113
|
+
```
|
114
|
+
|
115
|
+
|
92
116
|
### 試したこと
|
93
117
|
|
94
118
|
コマンドプロンプト上で以下のビルドコマンドは正常に動作することは確認済みです。
|