質問編集履歴
4
hogehoge\.cppのヘッダーが異なる名前になっていたので修正しました\.
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
```cpp
|
62
62
|
|
63
|
-
#include "
|
63
|
+
#include "hogehoge.h"
|
64
64
|
|
65
65
|
|
66
66
|
|
3
プログラムの内容が見にくかったので編集しなおしました\.
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
hogehoge.h
|
36
36
|
|
37
|
-
|
37
|
+
```header
|
38
38
|
|
39
39
|
#pragma once
|
40
40
|
|
@@ -52,11 +52,13 @@
|
|
52
52
|
|
53
53
|
#endif /*HOGEHOGE*/
|
54
54
|
|
55
|
-
|
55
|
+
```
|
56
|
+
|
57
|
+
|
56
58
|
|
57
59
|
hogehoge.cpp
|
58
60
|
|
59
|
-
|
61
|
+
```cpp
|
60
62
|
|
61
63
|
#include "nsgaii.h"
|
62
64
|
|
@@ -68,11 +70,13 @@
|
|
68
70
|
|
69
71
|
}
|
70
72
|
|
73
|
+
```
|
74
|
+
|
71
75
|
|
72
76
|
|
73
77
|
makefile
|
74
78
|
|
75
|
-
|
79
|
+
```makefile
|
76
80
|
|
77
81
|
#makefile
|
78
82
|
|
@@ -116,7 +120,7 @@
|
|
116
120
|
|
117
121
|
rm -f $(BUILDDIR)/*.o $(BUILDDIR)/*.exe
|
118
122
|
|
119
|
-
|
123
|
+
```
|
120
124
|
|
121
125
|
###試したこと
|
122
126
|
|
2
プログラムの内容が読みにくかったので編集しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,9 +32,9 @@
|
|
32
32
|
|
33
33
|
###該当のソースコード
|
34
34
|
|
35
|
-
|
35
|
+
hogehoge.h
|
36
36
|
|
37
|
-
|
37
|
+
/*
|
38
38
|
|
39
39
|
#pragma once
|
40
40
|
|
@@ -52,11 +52,11 @@
|
|
52
52
|
|
53
53
|
#endif /*HOGEHOGE*/
|
54
54
|
|
55
|
-
|
55
|
+
*/
|
56
56
|
|
57
|
-
|
57
|
+
hogehoge.cpp
|
58
58
|
|
59
|
-
|
59
|
+
/*
|
60
60
|
|
61
61
|
#include "nsgaii.h"
|
62
62
|
|
@@ -68,11 +68,11 @@
|
|
68
68
|
|
69
69
|
}
|
70
70
|
|
71
|
-
...
|
72
71
|
|
73
|
-
//makefile
|
74
72
|
|
73
|
+
makefile
|
74
|
+
|
75
|
-
|
75
|
+
/*
|
76
76
|
|
77
77
|
#makefile
|
78
78
|
|
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
rm -f $(BUILDDIR)/*.o $(BUILDDIR)/*.exe
|
118
118
|
|
119
|
-
|
119
|
+
*/
|
120
120
|
|
121
121
|
###試したこと
|
122
122
|
|
1
makefileを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,8 @@
|
|
34
34
|
|
35
35
|
//hogehoge.h
|
36
36
|
|
37
|
+
...
|
38
|
+
|
37
39
|
#pragma once
|
38
40
|
|
39
41
|
#ifndef __HOGEHOGE__
|
@@ -50,9 +52,11 @@
|
|
50
52
|
|
51
53
|
#endif /*HOGEHOGE*/
|
52
54
|
|
53
|
-
|
55
|
+
...
|
54
56
|
|
55
57
|
//hogehoge.cpp
|
58
|
+
|
59
|
+
...
|
56
60
|
|
57
61
|
#include "nsgaii.h"
|
58
62
|
|
@@ -64,7 +68,55 @@
|
|
64
68
|
|
65
69
|
}
|
66
70
|
|
71
|
+
...
|
67
72
|
|
73
|
+
//makefile
|
74
|
+
|
75
|
+
...
|
76
|
+
|
77
|
+
#makefile
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
#main compiler
|
82
|
+
|
83
|
+
CC := g++
|
84
|
+
|
85
|
+
#source file extension
|
86
|
+
|
87
|
+
SRCEXT := cpp
|
88
|
+
|
89
|
+
#build directory
|
90
|
+
|
91
|
+
BUILDDIR := build
|
92
|
+
|
93
|
+
#result directory
|
94
|
+
|
95
|
+
RESULTDIR := result
|
96
|
+
|
97
|
+
#solver directory
|
98
|
+
|
99
|
+
SOLVER := solver
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
#solver file
|
104
|
+
|
105
|
+
META := hogehoge
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
$(META): $(BUILDDIR)/$(META).o $(SOLVER)/$(META)/$(META).h
|
110
|
+
|
111
|
+
$(BUILDDIR)/$(META).o: $(SOLVER)/$(META)/$(META).cpp
|
112
|
+
|
113
|
+
CC -Wall -o $(BUILDDIR)/$(META) $(SOLVER)/$(META)/$(META).cpp
|
114
|
+
|
115
|
+
clean:
|
116
|
+
|
117
|
+
rm -f $(BUILDDIR)/*.o $(BUILDDIR)/*.exe
|
118
|
+
|
119
|
+
...
|
68
120
|
|
69
121
|
###試したこと
|
70
122
|
|