INFO: Dieses Forum nutzt Cookies...
Cookies sind für den Betrieb des Forums unverzichtbar. Mit der Nutzung des Forums erklärst Du dich damit einverstanden, dass wir Cookies verwenden.

Es wird in jedem Fall ein Cookie gesetzt um diesen Hinweis nicht mehr zu erhalten. Desweiteren setzen wir Google Adsense und Google Analytics ein.

Antwort schreiben 
 
Themabewertung:
  • 0 Bewertungen - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Fehler bei Kompilieren
21.03.2020, 11:52
Beitrag #1
Fehler bei Kompilieren
Liebe Community,

leider erhalte ich beim Compilieren von u.g. Sketch (Download von Herstellerseite des UV-Sensors) unzählige Fehler nach dem Muster:

\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\xxx' in program

Code:
/*!
*  file VEML6075SimpleTest.ino
*  simple test for VEML6075
*  Print UVA index, UVB index and UV index on the serial monitor
*
*  Copyright    [DFRobot](http://www.dfrobot.com), 2018
*  Copyright    GNU Lesser General Public License
*  version  V1.0
*  date  2018-12-18
*/

#include <Wire.h>
#include <DFRobot_VEML6075.h>

#define VEML6075_ADDR   0x10

DFRobot_VEML6075_IIC VEML6075(&Wire, VEML6075_ADDR);  // create object

void setup()
{
  Serial.begin(115200);
  delay(2000);
  while(!Serial);

  Serial.println();
  while(VEML6075.begin() != true) {
    Serial.println("VEML6075 begin faild");
    delay(2000);
  }
  Serial.println("VEML6075 begin successed");
}

void loop()
{
  uint16_t    UvaRaw = VEML6075.readUvaRaw();         // read UVA raw
  uint16_t    UvbRaw = VEML6075.readUvbRaw();         // read UVB raw
  uint16_t    comp1Raw = VEML6075.readUvComp1Raw();   // read COMP1 raw
  uint16_t    comp2Raw = VEML6075.readUvComp2Raw();   // read COMP2 raw

  float       Uva = VEML6075.getUva();                // get UVA
  float       Uvb = VEML6075.getUvb();                // get UVB
  float       Uvi = VEML6075.getUvi(Uva, Uvb);        // get UV index

  Serial.println();
  Serial.println("======== start print ========");
  Serial.print("UVA raw:    ");
  Serial.println(UvaRaw);
  Serial.print("UVB raw:    ");
  Serial.println(UvbRaw);
  Serial.print("COMP1 raw:  ");
  Serial.println(comp1Raw);
  Serial.print("COMP2 raw:  ");
  Serial.println(comp2Raw);
  Serial.print("UVA:        ");
  Serial.println(Uva, 2);
  Serial.print("UVB:        ");
  Serial.println(Uvb, 2);
  Serial.print("UVIndex:    ");
  Serial.print(Uvi, 2);
  if(Uvi < UVI_LOW)
    Serial.println("  UVI low");
  else if(Uvi < UVI_MODERATE)
    Serial.println("  UVI moderate");
  else if(Uvi < UVI_HIGH)
    Serial.println("  UVI high");
  else if(Uvi < UVI_VERY_HIGH)
    Serial.println("  UVI very high");
  else
    Serial.println("  UVI extreme");
  Serial.print("mw/cm^2:    ");
  Serial.println(Uvi2mwpcm2(Uvi), 2);
  Serial.println("======== end print ========");
  delay(1000);
}

Wer hat einen Rat für mich ?
Offensichtlich treten die Fehler bei Zugriff auf folgende Library auf:
DFRobot_VEML6075.h

Vielen Dank
Andreas
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 11:56
Beitrag #2
RE: Fehler bei Kompilieren
Poste bitte die komplette Fehlermeldung in Code-Tags.

Gruß Dieter

I2C = weniger ist mehr: weniger Kabel, mehr Probleme. Cool
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 12:03 (Dieser Beitrag wurde zuletzt bearbeitet: 21.03.2020 12:04 von Tommy56.)
Beitrag #3
RE: Fehler bei Kompilieren
(21.03.2020 11:52)ak68 schrieb:  \Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\xxx' in program

Du hast Dir beim Kopieren böse Zeichen eingefangen. Nutze einen Editor, der den Zeichensatz umschalten kann (z.B. Notepad++) und schalte zwischen UTF-8 (ohne BOM) und ANSI hin und her. Dann siehst Du die falschen Zeichen und kannst sie entfernen.
Im Webbrowser sind sie nicht zu sehen.

Gruß Tommy

Edit: Gib uns mal einen Link zur Lib.

"Wer den schnellen Erfolg sucht, sollte nicht programmieren, sondern Holz hacken." (Quelle unbekannt)
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 12:28
Beitrag #4
RE: Fehler bei Kompilieren
(21.03.2020 12:03)Tommy56 schrieb:  
(21.03.2020 11:52)ak68 schrieb:  \Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\xxx' in program

Du hast Dir beim Kopieren böse Zeichen eingefangen. Nutze einen Editor, der den Zeichensatz umschalten kann (z.B. Notepad++) und schalte zwischen UTF-8 (ohne BOM) und ANSI hin und her. Dann siehst Du die falschen Zeichen und kannst sie entfernen.
Im Webbrowser sind sie nicht zu sehen.

Gruß Tommy

Edit: Gib uns mal einen Link zur Lib.

Dies habe ich schon gemacht, urspünglich war die *.uino-Datei in ANSI, diese habe ich in UTF-8 ohne BOM geändert, die Library ist bereits in UTM-8 ohne BOM.

Link zur Library: https://github.com/DFRobot/DFRobot_VEML6075

Danke
Andreas

Komplette Fehlermeldung:
Code:
Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 160 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:3MB OTA:~512KB), 2, v2 IPv6 Lower Memory, Disabled, NoAssert-NDEBUG, Only Sketch, 115200"

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\302' in program

   <title>DFRobot_VEML6075/DFRobot_VEML6075.h at master · DFRobot/DFRobot_VEML6075 · GitHub</title>

   ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\267' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\302' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:32:3: error: stray '\267' in program

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:268:5: error: missing terminating ' character

     <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="163061711" data-scoped-search-url="/DFRobot/DFRobot_VEML6075/search" data-unscoped-search-url="/search" action="/DFRobot/DFRobot_VEML6075/search" accept-charset="UTF-8" method="get">

     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:315:7: error: stray '\342' in program

       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:315:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:315:7: error: stray '\265' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:320:7: error: stray '\342' in program

       <span class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:320:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:320:7: error: stray '\265' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:356:7: error: stray '\342' in program

       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:356:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:356:7: error: stray '\265' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:361:7: error: stray '\342' in program

       <span class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:361:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:361:7: error: stray '\265' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:388:7: error: stray '\342' in program

       <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:388:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:388:7: error: stray '\265' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:393:7: error: stray '\342' in program

       <span class="d-inline-block ml-1 v-align-middle">↵</span>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:393:7: error: stray '\206' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:393:7: error: stray '\265' in program

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:735:5: error: missing terminating " character

     <div class="Box mt-3 position-relative

     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:736:7: error: missing terminating " character

       ">

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:786:69: error: stray '#' in program

         <td id="LC1" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> DFROBOT_VEML6075_H</td>

                                                                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:790:69: error: stray '#' in program

         <td id="LC2" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">DFROBOT_VEML6075_H</span></td>

                                                                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:799:69: error: stray '#' in program

         <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:803:69: error: stray '#' in program

         <td id="LC5" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Wire.h<span class="pl-pds">&gt;</span></span></td>

                                                                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:821:69: error: stray '#' in program

         <td id="LC9" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_ID_DEFAULT</span>   <span class="pl-c1">0x26</span></td>

                                                                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:825:70: error: stray '#' in program

         <td id="LC10" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_ADDR</span>         <span class="pl-c1">0x10</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:834:70: error: stray '#' in program

         <td id="LC12" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">UVI_LOW</span>         <span class="pl-c1">2</span>.<span class="pl-c1">0f</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:838:70: error: stray '#' in program

         <td id="LC13" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">UVI_MODERATE</span>    <span class="pl-c1">5</span>.<span class="pl-c1">0f</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:842:70: error: stray '#' in program

         <td id="LC14" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">UVI_HIGH</span>        <span class="pl-c1">7</span>.<span class="pl-c1">0f</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:846:70: error: stray '#' in program

         <td id="LC15" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">UVI_VERY_HIGH</span>   <span class="pl-c1">10</span>.<span class="pl-c1">0f</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:850:70: error: stray '#' in program

         <td id="LC16" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">UVI_EXTREME</span>     <span class="pl-c1">12</span>.<span class="pl-c1">0f</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:859:70: error: stray '#' in program

         <td id="LC18" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">Uvi2mwpcm2</span>(<span class="pl-v">UVI</span>) (UVI * <span class="pl-c1">2500</span>.<span class="pl-c1">0f</span>)</td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:877:70: error: stray '#' in program

         <td id="LC22" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_CONF</span>       <span class="pl-c1">0x00</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:881:70: error: stray '#' in program

         <td id="LC23" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_CONF_DEFAULT</span>   <span class="pl-c1">0x00</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:885:70: error: stray '#' in program

         <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_UVA</span>        <span class="pl-c1">0x07</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:889:70: error: stray '#' in program

         <td id="LC25" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_UVB</span>        <span class="pl-c1">0x09</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:893:70: error: stray '#' in program

         <td id="LC26" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_UV_COMP1</span>   <span class="pl-c1">0x0a</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:897:70: error: stray '#' in program

         <td id="LC27" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_UV_COMP2</span>   <span class="pl-c1">0x0b</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:901:70: error: stray '#' in program

         <td id="LC28" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_ID</span>         <span class="pl-c1">0x0c</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:965:70: error: stray '#' in program

         <td id="LC43" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">VEML6075_TRIG_ONE_MEASUREMENT</span>   <span class="pl-c1">1</span></td>

                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1323:71: error: stray '#' in program

         <td id="LC128" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1358:7: error: missing terminating ' character

       <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-jump-to-line-form Box-body d-flex" action="" accept-charset="UTF-8" method="get">

       ^

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1412:5: error: stray '\342' in program

     You can’t perform that action at this time.

     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1412:5: error: stray '\200' in program

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1412:5: error: stray '\231' in program

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:7:1: error: expected unqualified-id before '<' token

<!DOCTYPE html>

^

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:144:25: error: 'up' does not name a type

               Sign&nbsp;up

                         ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:171:267: error: expected unqualified-id before '<' token

                     <a href="/features" class="py-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Features">Features <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a>

                                                                                                                                                                                                                                                                           ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:184:332: error: expected unqualified-id before '<' token

                       <li class="edge-item-fix"><a href="/customer-stories" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Customer stories">Customer stories <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a></li>

                                                                                                                                                                                                                                                                                                                                            ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:185:308: error: expected unqualified-id before '<' token

                       <li class="edge-item-fix"><a href="/security" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Security">Security <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a></li>

                                                                                                                                                                                                                                                                                                                    ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:205:299: error: expected unqualified-id before '<' token

                       <li class="edge-item-fix"><a href="/explore" class="py-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Explore">Explore GitHub <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a></li>

                                                                                                                                                                                                                                                                                                           ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:208:113: error: 'contribute' does not name a type

                     <h4 class="text-gray-light text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn &amp; contribute</h4>

                                                                                                                 ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:241:262: error: expected unqualified-id before '<' token

                     <a href="/pricing" class="pb-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Pricing">Plans <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a>

                                                                                                                                                                                                                                                                      ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:249:312: error: expected unqualified-id before '<' token

                       <li class="edge-item-fix"><a href="/nonprofit" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Nonprofits">Nonprofit <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a></li>

                                                                                                                                                                                                                                                                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:250:335: error: expected unqualified-id before '<' token

                       <li class="edge-item-fix"><a href="https://education.github.com" class="py-2 pb-0 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover"  data-ga-click="(Logged out) Header, go to Education">Education <span class="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</span></a></li>

                                                                                                                                                                                                                                                                                                                                               ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:412:21: error: 'in' does not name a type

           Sign&nbsp;in

                     ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:418:23: error: 'up' does not name a type

             Sign&nbsp;up

                       ^

In file included from C:\Users\Andreas\Documents\Arduino\UV-Sensor\UV-Sensor.ino:13:0:

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:723:7: error: expected unqualified-id before '<' token

       </div>

       ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:799:148: error: expected unqualified-id before '<' token

         <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                    ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:799:189: error: expected unqualified-id before '<' token

         <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                             ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:803:148: error: expected unqualified-id before '<' token

         <td id="LC5" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Wire.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                    ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:803:186: error: expected unqualified-id before '<' token

         <td id="LC5" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Wire.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                          ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:931:72: error: 'eVEML6075Power_t' does not name a type

         <td id="LC35" class="blob-code blob-code-inner js-file-line">} eVEML6075Power_t;</td>

                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:931:89: error: expected unqualified-id before '<' token

         <td id="LC35" class="blob-code blob-code-inner js-file-line">} eVEML6075Power_t;</td>

                                                                                         ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:952:72: error: 'eVEML6075ActiveForceMode_t' does not name a type

         <td id="LC40" class="blob-code blob-code-inner js-file-line">} eVEML6075ActiveForceMode_t;</td>

                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:952:99: error: expected unqualified-id before '<' token

         <td id="LC40" class="blob-code blob-code-inner js-file-line">} eVEML6075ActiveForceMode_t;</td>

                                                                                                   ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:990:72: error: 'eVEML6075Dynamic_t' does not name a type

         <td id="LC49" class="blob-code blob-code-inner js-file-line">} eVEML6075Dynamic_t;</td>

                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:990:91: error: expected unqualified-id before '<' token

         <td id="LC49" class="blob-code blob-code-inner js-file-line">} eVEML6075Dynamic_t;</td>

                                                                                           ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1027:72: error: 'eVEML6075UV_IT_t' does not name a type

         <td id="LC58" class="blob-code blob-code-inner js-file-line">} eVEML6075UV_IT_t;</td>

                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1027:89: error: expected unqualified-id before '<' token

         <td id="LC58" class="blob-code blob-code-inner js-file-line">} eVEML6075UV_IT_t;</td>

                                                                                         ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1068:72: error: expected unqualified-id before '<' token

         <td id="LC68" class="blob-code blob-code-inner js-file-line">} <span class="pl-smi">sVEML6075Conf_t</span>;</td>

                                                                        ^

C:\Users\Andreas\Documents\Arduino\libraries\DFRobot_VEML6075/DFRobot_VEML6075.h:1068:116: error: expected unqualified-id before '<' token

         <td id="LC68" class="blob-code blob-code-inner js-file-line">} <span class="pl-smi">sVEML6075Conf_t</span>;</td>

                                                                                                                    ^

exit status 1
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 12:35
Beitrag #5
RE: Fehler bei Kompilieren
(21.03.2020 12:28)ak68 schrieb:  Dies habe ich schon gemacht, urspünglich war die *.uino-Datei in ANSI, diese habe ich in UTF-8 ohne BOM geändert, die Library ist bereits in UTM-8 ohne BOM.

Nö, zumindest die Header-Datei, die der Compiler anmeckert, ist im Original nicht in ANSI. Die hat nur Zeichen aus dem ASCII-Satz. Da hast Du anscheinend Fehler beim Download gemacht.

Hast Du die komplette Lib über den grünen Download-Button herunter geladen?

Gruß Tommy

"Wer den schnellen Erfolg sucht, sollte nicht programmieren, sondern Holz hacken." (Quelle unbekannt)
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 12:48 (Dieser Beitrag wurde zuletzt bearbeitet: 21.03.2020 13:08 von ak68.)
Beitrag #6
RE: Fehler bei Kompilieren
(21.03.2020 12:35)Tommy56 schrieb:  
(21.03.2020 12:28)ak68 schrieb:  Dies habe ich schon gemacht, urspünglich war die *.uino-Datei in ANSI, diese habe ich in UTF-8 ohne BOM geändert, die Library ist bereits in UTM-8 ohne BOM.

Nö, zumindest die Header-Datei, die der Compiler anmeckert, ist im Original nicht in ANSI. Die hat nur Zeichen aus dem ASCII-Satz. Da hast Du anscheinend Fehler beim Download gemacht.

Hast Du die komplette Lib über den grünen Download-Button herunter geladen?

Gruß Tommy

Genau das war der Fehler, neu heruntergeladen über grünen Button
-> was soll ich sagen: Jetzt Funktioniert zumindest schon ´mal das Überprüfen.

Jedoch scheitert das Hochladen mit folgendem fehler:
Code:
Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 160 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:3MB OTA:~512KB), 2, v2 IPv6 Lower Memory, Disabled, NoAssert-NDEBUG, Only Sketch, 115200"

Executable segment sizes:


IROM   : 239632          - code in flash         (default or ICACHE_FLASH_ATTR)


IRAM   : 27980   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)


DATA   : 1140  )         - initialized variables (global, static) in RAM/HEAP


RODATA : 1168  ) / 81920 - constants             (global, static) in RAM/HEAP


BSS    : 26744 )         - zeroed variables      (global, static) in RAM/HEAP


Der Sketch verwendet 269920 Bytes (25%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes.
Globale Variablen verwenden 29052 Bytes (35%) des dynamischen Speichers, 52868 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.
esptool.py v2.8
Serial port COM1
Connecting........_____....._____....._____....._____....._____....._____.....__​__Traceback (most recent call last):
  File "C:\Users\Andreas\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3​/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/Users/Andreas/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/Users/Andreas/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

Was ist jetzt zu Tun ? Sorry für die "DUMMEN" Arduino-Anfängerfragen Huh

Vielen Dank für Euere Hilfe !
Andreas
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
21.03.2020, 13:12 (Dieser Beitrag wurde zuletzt bearbeitet: 21.03.2020 13:19 von Tommy56.)
Beitrag #7
RE: Fehler bei Kompilieren
Wenn Du einen ESP8266 benutzt, wartum postest Du nicht in der passenden Rubrik?

@MOD: Bitte verschieben

COM 1 ist garantiert falsch.

Welchen USB-Chip hast Du drauf?
Wahrscheinlich CH340. Da musst Du noch den passenden Treiber installieren.

Ansonsten tausche mal das USB-Kabel. Evtl. hast Du ein reines Ladekabel erwischt.

Gruß Tommy

"Wer den schnellen Erfolg sucht, sollte nicht programmieren, sondern Holz hacken." (Quelle unbekannt)
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Möglicherweise verwandte Themen...
Thema: Verfasser Antworten: Ansichten: Letzter Beitrag
  Fehler bei delay über 32767 Kleingärtner 5 280 07.05.2020 18:51
Letzter Beitrag: Kleingärtner
  Fehler bei eigener Library Samu_wo 4 269 20.04.2020 15:51
Letzter Beitrag: Samu_wo
  Fehler beim Kompilieren Lunge 6 364 09.04.2020 14:07
Letzter Beitrag: MicroBahner
  Undefined reference-Fehler beim Kompilieren MdE 9 519 24.03.2020 21:39
Letzter Beitrag: Tommy56
  Stepper Motor mit zwei Taster bedienen / Fehler ohne Fehlermeldung Milano 6 478 21.03.2020 16:06
Letzter Beitrag: MicroBahner
  Arduino Taster - Welcher Fehler? lil.chem 4 534 10.02.2020 22:39
Letzter Beitrag: Franz54
  Compiler Fehler Meldung TKK-Arduino 40 2.170 09.02.2020 14:28
Letzter Beitrag: TKK-Arduino
  Nextion Fehler bei Button Abfrage wenn ich zusätzlich Text sende MarkZero0815 24 1.674 28.01.2020 08:23
Letzter Beitrag: hotsystems
  Mal geht das kompilieren mal nicht ???? MarkZero0815 12 1.068 06.01.2020 10:34
Letzter Beitrag: Tommy56
  Fehler beim Kompilieren für das Board ... Kurt Wallander 20 1.969 13.11.2019 21:55
Letzter Beitrag: Tommy56

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste