質問編集履歴
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
PWM_DutyCycle.c:5:26: warning: variable 'Duty_Cycle_C'set but not use [-Wunused-but-set-variable]
|
14
14
|
PWM_DutyCycle.c:5:12: warning: variable 'Duty_Cycle_B'set but not use [-Wunused-but-set-variable]
|
15
15
|
PWM_DutyCycle.c:66:1:warning: control reches end of non-void function[-Wunused-type]
|
16
|
-
collect2.exe: ld returned 1 exit status
|
16
|
+
collect2.exe:error: ld returned 1 exit status
|
17
17
|
|
18
18
|
### 該当のソースコード
|
19
19
|
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -91,5 +91,7 @@
|
|
91
91
|
|
92
92
|
### 補足情報(FW/ツールのバージョンなど)
|
93
93
|
GCC Developer Lite (Ver.2.5.0.0 Copyright(C)BestTechnology CO.,LTD 1999-2012)
|
94
|
+
コンパイルのコマンドは、上記の環境で用意されている、ビルドというアイコンもしくは、コンパイルの項目の中のビルドを選択するかのどちらかです。
|
95
|
+
Linux系やコマンドプロンプトのようにコマンドを打ち込んでコンパイルを行っていません。
|
94
96
|
|
95
97
|
よろしくお願いします。
|
1
ご指摘頂いたので追加させていただくのと、タイトルで質問内容にがわかりやすいようにしたつもりです。
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
C言語でマイコン(H8/3664)のPWM周期とFTIOB~FTIODのDuty比を計算させたいがエラーが
|
1
|
+
C言語でマイコン(H8/3664)のPWM周期とFTIOB~FTIODのDuty比を計算させたいがコンパイルでエラーが出る。
|
body
CHANGED
@@ -5,10 +5,15 @@
|
|
5
5
|
|
6
6
|
以下のエラーメッセージが表示されて、コンパイルが成功しません。
|
7
7
|
(linkingに問題が発生しているのでは?と考えていますが、原因がわかりません。)
|
8
|
-
醜い、コードですみません、どなたか助けて頂けない
|
8
|
+
醜い、コードですみません、どなたか助けて頂けない
|
9
|
+
でしょうか?
|
9
10
|
|
10
11
|
### 発生している問題・エラーメッセージ
|
12
|
+
PWM_DutyCycle.c:5:40: warning: variable 'Duty_Cycle_D'set but not use [-Wunused-but-set-variable]
|
13
|
+
PWM_DutyCycle.c:5:26: warning: variable 'Duty_Cycle_C'set but not use [-Wunused-but-set-variable]
|
14
|
+
PWM_DutyCycle.c:5:12: warning: variable 'Duty_Cycle_B'set but not use [-Wunused-but-set-variable]
|
15
|
+
PWM_DutyCycle.c:66:1:warning: control reches end of non-void function[-Wunused-type]
|
11
|
-
collect2.exe: ld returned 1 exit status
|
16
|
+
collect2.exe: ld returned 1 exit status
|
12
17
|
|
13
18
|
### 該当のソースコード
|
14
19
|
|