質問編集履歴
1
Markdownに変更した
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,11 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
###
|
11
|
+
###1つ目
|
12
12
|
|
13
|
+
```ruby:hello.cpp
|
14
|
+
|
13
|
-
|
15
|
+
#include <iostream>
|
14
16
|
|
15
17
|
int main()
|
16
18
|
|
@@ -22,39 +24,55 @@
|
|
22
24
|
|
23
25
|
}
|
24
26
|
|
27
|
+
```
|
25
28
|
|
26
29
|
|
30
|
+
|
31
|
+
###二つ目
|
32
|
+
|
27
|
-
|
33
|
+
```CMakeLists.txt
|
28
34
|
|
29
35
|
project(hello)
|
30
36
|
|
31
37
|
add_executable(hello hello.cpp)
|
32
38
|
|
39
|
+
```
|
33
40
|
|
34
41
|
|
35
|
-
///////////////////////////////////
|
36
42
|
|
37
43
|
|
38
44
|
|
39
45
|
「01.hello」フォルダに来て、そこへ「build」フォルダを作り、
|
40
46
|
|
47
|
+
```
|
48
|
+
|
41
49
|
chyfarm@chyfarm-VirtualBox:~/windows/01.hello$ mkdir build
|
50
|
+
|
51
|
+
```
|
42
52
|
|
43
53
|
|
44
54
|
|
45
55
|
この「build」フォルダへ移動してから
|
46
56
|
|
57
|
+
```
|
58
|
+
|
47
59
|
chyfarm@chyfarm-VirtualBox:~/windows/01.hello$ cd build
|
60
|
+
|
61
|
+
```
|
48
62
|
|
49
63
|
|
50
64
|
|
51
65
|
「cmake」したのですが、
|
52
66
|
|
67
|
+
```
|
68
|
+
|
53
69
|
chyfarm@chyfarm-VirtualBox:~/windows/01.hello/build$ cmake
|
70
|
+
|
71
|
+
```
|
54
72
|
|
55
73
|
同じように ↓ 構文エラーが出ます。
|
56
74
|
|
57
|
-
|
75
|
+
```
|
58
76
|
|
59
77
|
Usage
|
60
78
|
|
@@ -72,6 +90,8 @@
|
|
72
90
|
|
73
91
|
bash: 予期しないトークン `newline' 周辺に構文エラーがあります
|
74
92
|
|
93
|
+
```
|
94
|
+
|
75
95
|
|
76
96
|
|
77
97
|
これはどこに誤りがありますか?
|
@@ -80,7 +100,7 @@
|
|
80
100
|
|
81
101
|
<path-to-source>と言うので、いろいろ試したのですが、「bash: 予期しないトークン `newline' 周辺に構文エラーがあります」ばかりで、(頭の中が)混乱して来ました。
|
82
102
|
|
83
|
-
|
103
|
+
```
|
84
104
|
|
85
105
|
:~/windows$ cd ..
|
86
106
|
|
@@ -94,6 +114,6 @@
|
|
94
114
|
|
95
115
|
:~/windows$ cmake --build <01.hello> //構文エラー
|
96
116
|
|
97
|
-
|
117
|
+
```
|
98
118
|
|
99
119
|
よろしくお願いします。
|