exit status 1

hi, I am currently working on my lighaber proble and have ran into a coding error. the error reads
______________________________________________________________________________>

GyverSaber:68:53: error: TMRpcm.h: No such file or directory

compilation terminated.

exit status 1
TMRpcm.h: No such file or directory

_______________________________________________________________________________>

i do have the file in the library; but, i don't know why i am receiving this error message.
i believe this is the last correction i need to finally compile my code onto the arduino nano
can someone help me please

It sounds like you didn't install the TMRpcm library correctly. Where is the file?

No that's not what the error says. It actually shows the exact line of code which is causing the problem. That's useful information.

Please use the "Copy error messages" button in the IDE and post the complete messages (in code tags </>).

Steve

Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

GyverSaber:68:53: error: TMRpcm.h: No such file or directory

compilation terminated.

exit status 1
TMRpcm.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@rayvilla
Did you get this (reply #1)?

pert:
It sounds like you didn't install the TMRpcm library correctly. Where is the file?

Did you install the library? Just in case, it seems to be available in the library manager. In the IDE, sketch -> include library -> manage libraries. Wait for the library manager to update the list (blue progress bar at bottom) and next in the 'filter your search' type tmrpcm. It will show one entry, click on it and click the install button.

thank you
i seemed that i did not sperate the file location from the location of the coding for the lightsaber.
after fixing the problem, i got this message:


In file included from C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:73:0:

C:\Users\Owner\Documents\Arduino\libraries\FastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.005

pragma message "FastLED version 3.001.005"

^

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino: In function 'void btnTick()':

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:270:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

tmrpcm.play("HUM.wav");

^

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino: In function 'void on_off_sound()':

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:287:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

tmrpcm.play("ON.wav");

^

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:295:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

tmrpcm.play("HUM.wav");

^

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:312:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

tmrpcm.play("OFF.wav");

^

C:\Users\Owner\Documents\Arduino\GyverSaber\GyverSaber\GyverSaber.ino:329:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

tmrpcm.play("HUM.wav");

^

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

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1381:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

char* datStr = "LIST";

^

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1382:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

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

^

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1410:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

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

^

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1410:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1410:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1430:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

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

^

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1430:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

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

^

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\TMRpcm.cpp:1430:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

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

^

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

C:\Users\Owner\Documents\Arduino\libraries\TMRpcm\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\Owner\Documents\Arduino\libraries\TMRpcm\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};

^

Sketch uses 23180 bytes (75%) of program storage space. Maximum is 30720 bytes.
Global variables use 1637 bytes (79%) of dynamic memory, leaving 411 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.


does this mean the program is compiled as there is no exit 1 status

Yes, it compiled. You just have a bunch of warnings.

does this mean the program is compiled as there is no exit 1 status

Yes

Sketch uses 23180 bytes (75%) of program storage space. Maximum is 30720 bytes.
Global variables use 1637 bytes (79%) of dynamic memory, leaving 411 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.

The last line indicates that the application might or might not exhibit problems when running it.

Time to show your full code (and use code tags (

[code]and [/code]

) when posting it here on the forum).

i dont believe i see the copy error button, so i did copy and past. i apologise for not using code tags as i am fairly new to arduino and this forum