Boas, tenho um programa a funcionar, onde tem varias bibiliotecas, mas quando adiciono a biblioteca  <TMRpcm.h> aparece o seguinte erro ao compilar:

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp: In member function 'byte TMRpcm::metaInfo(boolean, char*, char*, byte)':

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1381:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

char* datStr = "LIST";

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1382:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if(infoType == 1){datStr = "ID3 "; datStr[3] = 3;}

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1410:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

char* tagNames[] = {"INAM","IART","IPRD"};

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1410:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1410:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1430:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

tagNames[0] = "TPE1"; tagNames[1] ="TIT2"; tagNames[2] ="TALB";

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1430:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

tagNames[0] = "TPE1"; tagNames[1] ="TIT2"; tagNames[2] ="TALB";

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1430:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

tagNames[0] = "TPE1"; tagNames[1] ="TIT2"; tagNames[2] ="TALB";

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp: In member function 'void TMRpcm::finalizeWavTemplate(char*)':

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1568:65: warning: narrowing conversion of '(fSize >> 16)' from 'long unsigned int' to 'byte {aka unsigned char}' inside { } [-Wnarrowing]

seek(4); byte data[4] = {lowByte(fSize),highByte(fSize), fSize >> 16,fSize >> 24};

^

C:\Users\Rodrigo\Documents\Arduino\libraries\TMRpcm-1.0.0\TMRpcm.cpp:1568:77: warning: narrowing conversion of '(fSize >> 24)' from 'long unsigned int' to 'byte {aka unsigned char}' inside { } [-Wnarrowing]

seek(4); byte data[4] = {lowByte(fSize),highByte(fSize), fSize >> 16,fSize >> 24};

^

libraries\TMRpcm-1.0.0\TMRpcm.cpp.o (symbol from plugin): In function `sFile':

(.text+0x0): multiple definition of `__vector_13'

libraries\TimerOne-master\TimerOne.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Erro ao compilar para a placa Arduino/Genuino Uno.

Já aconteceu isto a alguem?

Aguardo resposta

Rodrigo Ruas

Exibições: 59

Responder esta

Destaques

Registre-se no
Lab de Garagem
Clicando aqui

Convide um
amigo para fazer
parte

curso gratis de arduino

© 2018   Criado por Marcelo Rodrigues.   Ativado por

Badges  |  Relatar um incidente  |  Termos de serviço