Issues using imported library from GitHub - Invalid preprocessing directive & Invalid Library found at C/

Hello everyone, Id like to request help with an ECG project I am building.
The main code seems to be ok, however every time I compile it i get the same errors.

Is it an issue with the name of the .h file or possibly how I have the folders and files organized? Honestly, the folders are mostly at the Desktop I am just trying to get it to run so I can build a prototype for my portfolio.

This is a portion of the code:

#include "packageit.h"
#include<SPI.h>
#include <TimerOne.h>
#include "MAX30003.h"

#define MAX30003_CS_PIN 7
#define CLK_PIN 6

volatile char SPI_RX_Buff[5] ;
volatile char *SPI_RX_Buff_Ptr;
int i=0;
unsigned long uintECGraw = 0;
signed long intECGraw=0;
uint8_t DataPacketHeader[20];
uint8_t data_len = 8;
signed long ecgdata;
unsigned long data;

The output is:

In file included from D:\ECG\protocentral_max30003_arduino\protocentral_max30003\protocentral_max30003.ino:1:0:
C:\Users\Giovanne Lucas\Desktop\arduino-1.8.16\libraries\protocentral_openview/PA.h:1:2: error: invalid preprocessing directive #!
#!/bin/bash
^
exit status 1
Compiled error to the board Arduino Uno
Invalid library found at C:\Users\Giovanne Lucas\Desktop\arduino-1.8.16\libraries\controlP5: no headers files (.h) found in C:\Users\Giovanne Lucas\Desktop\arduino-1.8.16\libraries\controlP5
Invalid library found at C:\Users\Giovanne Lucas\Desktop\arduino-1.8.16\libraries\grafica: no headers files (.h) found in C:\Users\Giovanne Lucas\Desktop\arduino-1.8.16\libraries\grafica

Thanks for all input and knowledge.

Giovanne Lucas

This is usually found in Linux scripts

The operative word is "scripts" since that is not valid C/C++
Maybe whatever compiler the authors use allows it, but avr-gcc does not. It should be reported as a bug in their library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.