cc1plus.exe: fatal error: opening output file C:\Users\LENOVO\AppData\Local\Temp\2349327290\sketch_merged.cpp: Permission denied
compilation terminated.
exit status 1
Compilation error: exit status 1Use code tags to format code for the forum
cc1plus.exe: fatal error: opening output file C:\Users\LENOVO\AppData\Local\Temp\2349327290\sketch_merged.cpp: Permission denied
compilation terminated.
exit status 1
Compilation error: exit status 1Use code tags to format code for the forum
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\LENOVO\AppData\Local\Temp\arduino\sketches\99A07368775BB820EEEE0886F1ED19EF\sketch\stepper_test.ino.cpp -o nul
Alternatives for AFMotor.h: [Adafruit Motor Shield library@1.0.1]
ResolveLibrary(AFMotor.h)
-> candidates: [Adafruit Motor Shield library@1.0.1]
C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\LENOVO\Documents\Arduino\libraries\Adafruit_Motor_Shield_library C:\Users\LENOVO\AppData\Local\Temp\arduino\sketches\99A07368775BB820EEEE0886F1ED19EF\sketch\stepper_test.ino.cpp -o nul
C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\LENOVO\Documents\Arduino\libraries\Adafruit_Motor_Shield_library C:\Users\LENOVO\Documents\Arduino\libraries\Adafruit_Motor_Shield_library\AFMotor.cpp -o nul
Generating function prototypes...
C:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\LENOVO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\LENOVO\Documents\Arduino\libraries\Adafruit_Motor_Shield_library C:\Users\LENOVO\AppData\Local\Temp\arduino\sketches\99A07368775BB820EEEE0886F1ED19EF\sketch\stepper_test.ino.cpp -o C:\Users\LENOVO\AppData\Local\Temp\2516488751\sketch_merged.cpp
C:\Users\LENOVO\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\LENOVO\AppData\Local\Temp\2516488751\sketch_merged.cpp
ctags: cannot open temporary file : Permission denied
exit status 1
Compilation error: exit status 1``
Please don't hijack threads @tejesh21 . I have split your post out to its own topic.
Hijacking is against the Arduino forum rules. The reason is that it may sidetrack the discussion, even preventing the creator of the topic from getting the assistance they need. It also reduces your own chances of getting assistance.
This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Hi @tejesh21.
Delete the file at the following path and then try compiling the sketch again:
C:\Users\LENOVO\AppData\Local\Temp\2516488751\sketch_merged.cpp
If looking for it with your file manager or command line, note that the AppData
folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
Please be careful when deleting things from your computer. When in doubt, back up!