BBS-掲示板/10の変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!![[学習リモコンのコンパイルについて|BBS-掲示板/10]] - sk (2012年01月21日 15時30分18秒)
学習リモコンを製作したく貴殿のHPを見つけAVRStudio4.19とWINAVR20100110プラスavr-toolchain3.3.0.710でコンパイルを実行した所エラーでコンパイル出来ません。超初心者で初歩的な事も良く分からない者ですがご教授お願いいたします。エラー内容はrm -rf ir_remocon.o  ir_remocon.elf dep/* ir_remocon.hex ir_remocon.eep ir_remocon.lss ir_remocon.map
Build succeeded with 0 Warnings...
avr-gcc  -mmcu=atmega168p -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT ir_remocon.o -MF dep/ir_remocon.o.d  -c  ../ir_remocon.c
avr-gcc -mmcu=atmega168p -Wl,-Map=ir_remocon.map ir_remocon.o     -o ir_remocon.elf
ir_remocon.o: In function `norm_sub':
D:\avrprog\rimocon\default/../ir_remocon.c:137: undefined reference to `IR_xmit'
D:\avrprog\rimocon\default/../ir_remocon.c:140: undefined reference to `IrCtrl'
ir_remocon.o: In function `prog_sub':
D:\avrprog\rimocon\default/../ir_remocon.c:154: undefined reference to `IrCtrl'
D:\avrprog\rimocon\default/../ir_remocon.c:163: undefined reference to `IrCtrl'
D:\avrprog\rimocon\default/../ir_remocon.c:157: undefined reference to `IrCtrl'
D:\avrprog\rimocon\default/../ir_remocon.c:169: undefined reference to `IrCtrl'
ir_remocon.o:D:\avrprog\rimocon\default/../ir_remocon.c:170: more undefined references to `IrCtrl' follow
ir_remocon.o: In function `main':
D:\avrprog\rimocon\default/../ir_remocon.c:205: undefined reference to `IR_initialize'
D:\avrprog\rimocon\default/../ir_remocon.c:225: undefined reference to `IrCtrl'
collect2: ld returned 1 exit status
make: *** [ir_remocon.elf] エラー 1
Build failed with 9 errors and 0 warnings...
です長文で申し訳御座いませんが、宜しくお願いいたします。
*プロジェクトにir_ctrl.c とir_ctrl.hを追加していますか。本文の「コンパイルの仕方」の項を注意して読み直してください。 - 管理人 (2012年01月21日 17時14分33秒)
*指摘ありがとうございます、2個のプロジェクトは追加しているつもりですが再度確認してみます。 - sk (2012年01月21日 17時57分41秒)
*プロジェクトの追加方法に間違いがあったようで再度訂正した所うまくコンパイルできました。ありがとうございました。 - sk (2012年01月21日 18時11分34秒)
{{comment}}