Arduino IR sensor kod derleme hatası

Affansen

Katılımcı Üye
Katılım
15 Ocak 2021
Mesajlar
501
Puanları
56
Nedenini bilmediğim bir şekilde mBlock ile IR kumanda kodu yaparken hata alıyorum. Kodu Arduino IDE ile açınca ise şu hatayı alıyorum:
Kod:
Arduino:1.6.5 (Windows 8.1), Kart:"Arduino/Genuino Uno"

IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `MATCH(int, int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `MATCH_MARK(int, int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `MATCH_SPACE(int, int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::IRrecv(int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `irparams'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::IRrecv(int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::enableIRIn()'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::blink13(int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `__vector_7'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::resume()'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::decodeNEC(decode_results*)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::getRClevel(decode_results*, int*, int*, int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::compare(unsigned int, unsigned int)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::decodeHash(decode_results*)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
IRremote_ard.cpp.o: In function `MATCH(int, int)':
D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremote_ard.cpp:69: multiple definition of `IRrecv::decode(decode_results*)'
IRremoteNEW.cpp.o:D:\Users\AFFAN\AppData\Local\Temp\build3132428152192588699.tmp/IRremoteIntNEW.h:176: first defined here
collect2.exe: error: ld returned 1 exit status
Derleme sırasında hata oluştu.

  Rapor daha fazla veri içermeli
  "Derleme sırasında ayrıntılı çıktı göster"
  Dosya > Tercihler'de etkinleştirilmiş.

@Akif9748
 
IRremote_ard.cpp
IRremoteIntNEW.h

içerisinde aynı fonksiyonlar var diyor ikisinden birisi fazla yüklenmiş. Yazdığın kodu paylaşırsan çözüm ararız
 
IRremote_ard.cpp
IRremoteIntNEW.h

içerisinde aynı fonksiyonlar var diyor ikisinden birisi fazla yüklenmiş. Yazdığın kodu paylaşırsan çözüm ararız
Cevabınız için teşekkür ederim, deneyeceğim hemen.

Normalde IDE kodunda bir sorun yok. Problem mBlock ile başlıyor. :D
 

Forum istatistikleri

Konular
128,158
Mesajlar
915,532
Kullanıcılar
449,909
Son üye
T_K

Yeni konular

Geri
Üst