sketch compiler error -

Inquiry and support for Freematics products
Post Reply
christian
Posts: 3
Joined: Thu Oct 27, 2016 6:49 pm

sketch compiler error -

Post by christian »

Hello all,
First of all I’m a beginner… so probably there is a stupid simple thing not working…
I’ve downloaded the simple example sketch that swith on the arduino led when passing 3000 rpm.


*************************************************************************
* Sample sketch based on OBD-II library for Arduino
* Distributed under GPL v2.0
* Visit http://freematics.com for more information
* (C)2012-2014 Stanley Huang <stanleyhuangyc@gmail.com>
*************************************************************************/

#include <Arduino.h>
#include <Wire.h>
#include "OBD2uart.h"

COBD obd;

void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
digitalWrite(13,HIGH); // debug: turn the led ON when init starts

// start communication with OBD-II UART adapter
obd.begin();

// initiate OBD-II connection until success
while (!obd.init());
digitalWrite(13,LOW); // debug: turn the led OFF when init ends
}

void loop()
{
int value;
if (obd.read(PID_RPM, value)) {
// RPM is successfully read and its value stored in variable 'value'
// light on LED when RPM exceeds 3000
digitalWrite(13, value < 1800 ? HIGH : LOW);


When I run the compiler, appears a lot of errors:


Arduino:1.6.7 (Windows 7), Scheda:"Arduino/Genuino Uno"
In file included from C:\Users\cristian\Documents\obd display\display001\display001.ino:10:0:
sketch\OBD2uart.h:8:19: warning: character constant too long for its type
<meta charset='utf-8'>
^
sketch\OBD2uart.h:26:5: error: stray '\302' in program
<title>ArduinoOBD/OBD2UART.h at master • stanleyhuangyc/ArduinoOBD • GitHub</title>
^
sketch\OBD2uart.h:26:5: error: stray '\267' in program
sketch\OBD2uart.h:26:5: error: stray '\302' in program
sketch\OBD2uart.h:26:5: error: stray '\267' in program
In file included from C:\Users\cristian\Documents\obd display\display001\display001.ino:10:0:
sketch\OBD2uart.h:139:28: warning: missing terminating ' character
<!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/stanleyhuangyc/ArduinoOBD/search" class="js-site-search-form" data-scoped-search-url="/stanleyhuangyc/ArduinoOBD/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
^
sketch\OBD2uart.h:139:3: error: missing terminating ' character
<!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/stanleyhuangyc/ArduinoOBD/search" class="js-site-search-form" data-scoped-search-url="/stanleyhuangyc/ArduinoOBD/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
^
In file included from C:\Users\cristian\Documents\obd display\display001\display001.ino:10:0:
sketch\OBD2uart.h:379:11: error: exponent has no digits
3655eb4
^
In file included from C:\Users\cristian\Documents\obd display\display001\display001.ino:10:0:
sketch\OBD2uart.h:473:69: error: stray '#' in program
<td id="LC8" 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>
^
sketch\OBD2uart.h:482: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">OBD_TIMEOUT_SHORT</span> <span class="pl-c1">1000</span> <span class="pl-c">/* ms */</span></td>

…and it continue for several pages :shock:



Seems related to the library. Can be?
Sorry for my poor English
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: sketch compiler error -

Post by stanley »

Apparently you have saved the web page to use as library file.
christian
Posts: 3
Joined: Thu Oct 27, 2016 6:49 pm

Re: sketch compiler error -

Post by christian »

hello Stanley, tks for your reply !!
I've dowloaded the files from github with the right procedure , and put them on the arduino library folder.

tried to compile the rpm_led_i2c sketch, but seems other issues...

" libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':
(.text+0x0): multiple definition of `COBD::sendCommand(char const*, char*, unsigned char, int)'
sketch\OBD.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':
(.text+0x0): multiple definition of `COBD::readPID(unsigned char, int&)'
sketch\OBD.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':
(.text+0x0): multiple definition of `COBD::clearDTC()'
sketch\OBD.cpp.o (symbol from plugin):(.text+0x0): first defined here


.... for several rows... any suggestion ? :roll:
christian
Posts: 3
Joined: Thu Oct 27, 2016 6:49 pm

Re: sketch compiler error -

Post by christian »

hello, tks for the update, I've dowloaded with the right procedure the file, but the compiling go wrong, with this error message:


libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':
(.text+0x0): multiple definition of `COBD::sendCommand(char const*, char*, unsigned char, int)'
sketch\OBD.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':
(.text+0x0): multiple definition of `COBD::readPID(unsigned char, int&)'
sketch\OBD.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\OBD\OBD.cpp.o (symbol from plugin): In function `COBD::sendCommand(char const*, char*, unsigned char, int)':

...... and it continue

anybody can help me, or exist a "quick start guide " for this tool and software? it is quite frustrating do not understand the problem...
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: sketch compiler error -

Post by stanley »

Don't keep library files both in the sketch folder and "libraries" folder.
Sebastien
Posts: 1
Joined: Tue Feb 14, 2017 3:09 am

Re: sketch compiler error -

Post by Sebastien »

Hello,

I get Arduino UNO and OBD-II UART Adapter trying to run the 3000 RPM code from exemple and I can't compile it. What I did wrong? The code and error are paste below:

Thank

/*************************************************************************
* Sample sketch based on OBD-II library for Arduino
* Distributed under GPL v2.0
* Visit http://freematics.com for more information
* (C)2012-2014 Stanley Huang <stanleyhuangyc@gmail.com>
*************************************************************************/

#include <OBD2UART.h>

COBD obd;

void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
// start communication with OBD-II UART adapter
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
}

void loop()
{
int value;
if (obd.readPID(PID_RPM, value)) {
// RPM is successfully read and its value stored in variable 'value'
// light on LED when RPM exceeds 3000
digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}

And I get these error:
Arduino:1.6.12 (Windows 7), Carte : "Arduino/Genuino Uno"

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:8:19: warning: character constant too long for its type

<meta charset='utf-8'>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:22:5: error: stray '\302' in program

<title>ArduinoOBD/OBD2UART.h at 578d81f3df6769dd91ec96715f19586b2da04843 · stanleyhuangyc/ArduinoOBD · GitHub</title>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:22:5: error: stray '\267' in program

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:22:5: error: stray '\302' in program

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:22:5: error: stray '\267' in program

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:135:8: warning: missing terminating ' character

<!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/stanleyhuangyc/ArduinoOBD/search" class="js-site-search-form" data-scoped-search-url="/stanleyhuangyc/ArduinoOBD/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:135:3: error: missing terminating ' character

<!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/stanleyhuangyc/ArduinoOBD/search" class="js-site-search-form" data-scoped-search-url="/stanleyhuangyc/ArduinoOBD/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>

^

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:447:69: error: stray '#' in program

<td id="LC8" 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\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:456: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">OBD_TIMEOUT_SHORT</span> <span class="pl-c1">1000</span> <span class="pl-c"><span class="pl-c">/*</span> ms <span class="pl-c">*/</span></span></td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:460:70: error: stray '#' in program

<td id="LC11" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">OBD_TIMEOUT_LONG</span> <span class="pl-c1">15000</span> <span class="pl-c"><span class="pl-c">/*</span> ms <span class="pl-c">*/</span></span></td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:464: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">OBD_TIMEOUT_GPS</span> <span class="pl-c1">200</span> <span class="pl-c"><span class="pl-c">/*</span> ms <span class="pl-c">*/</span></span></td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:468: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">OBD_SERIAL_BAUDRATE</span> <span class="pl-c1">38400</span></td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:477:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:481:70: error: stray '#' in program

<td id="LC16" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168P__)</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:485:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:489:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:493:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:497:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:501:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:514: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">PID_ENGINE_LOAD</span> 0x04</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:518: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">PID_COOLANT_TEMP</span> 0x05</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:522: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">PID_SHORT_TERM_FUEL_TRIM_1</span> 0x06</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:526: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">PID_LONG_TERM_FUEL_TRIM_1</span> 0x07</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:530: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">PID_SHORT_TERM_FUEL_TRIM_2</span> 0x08</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:534:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:538:70: error: stray '#' in program

<td id="LC30" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_FUEL_PRESSURE</span> 0x0A</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:542:70: error: stray '#' in program

<td id="LC31" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_INTAKE_MAP</span> 0x0B</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:546:70: error: stray '#' in program

<td id="LC32" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_RPM</span> 0x0C</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:550:70: error: stray '#' in program

<td id="LC33" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_SPEED</span> 0x0D</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:554:70: error: stray '#' in program

<td id="LC34" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_TIMING_ADVANCE</span> 0x0E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:558:70: error: stray '#' in program

<td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_INTAKE_TEMP</span> 0x0F</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:562:70: error: stray '#' in program

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:566:70: error: stray '#' in program

<td id="LC37" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_THROTTLE</span> 0x11</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:570:70: error: stray '#' in program

<td id="LC38" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_AUX_INPUT</span> 0x1E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:574:70: error: stray '#' in program

<td id="LC39" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_RUNTIME</span> 0x1F</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:578:70: error: stray '#' in program

<td id="LC40" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_DISTANCE_WITH_MIL</span> 0x21</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:582:70: error: stray '#' in program

<td id="LC41" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_COMMANDED_EGR</span> 0x2C</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:586:70: error: stray '#' in program

<td id="LC42" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_EGR_ERROR</span> 0x2D</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:590: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">PID_COMMANDED_EVAPORATIVE_PURGE</span> 0x2E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:594:70: error: stray '#' in program

<td id="LC44" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_FUEL_LEVEL</span> 0x2F</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:598:70: error: stray '#' in program

<td id="LC45" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_WARMS_UPS</span> 0x30</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:602:70: error: stray '#' in program

<td id="LC46" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_DISTANCE</span> 0x31</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:606:70: error: stray '#' in program

<td id="LC47" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_EVAP_SYS_VAPOR_PRESSURE</span> 0x32</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:610:70: error: stray '#' in program

<td id="LC48" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_BAROMETRIC</span> 0x33</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:614:70: error: stray '#' in program

<td id="LC49" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_CATALYST_TEMP_B1S1</span> 0x3C</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:618:70: error: stray '#' in program

<td id="LC50" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_CATALYST_TEMP_B2S1</span> 0x3D</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:622:70: error: stray '#' in program

<td id="LC51" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_CATALYST_TEMP_B1S2</span> 0x3E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:626:70: error: stray '#' in program

<td id="LC52" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_CATALYST_TEMP_B2S2</span> 0x3F</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:630:70: error: stray '#' in program

<td id="LC53" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_CONTROL_MODULE_VOLTAGE</span> 0x42</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:634:70: error: stray '#' in program

<td id="LC54" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ABSOLUTE_ENGINE_LOAD</span> 0x43</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:638:70: error: stray '#' in program

<td id="LC55" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_AIR_FUEL_EQUIV_RATIO</span> 0x44</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:642:70: error: stray '#' in program

<td id="LC56" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_RELATIVE_THROTTLE_POS</span> 0x45</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:646:70: error: stray '#' in program

<td id="LC57" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_AMBIENT_TEMP</span> 0x46</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:650:70: error: stray '#' in program

<td id="LC58" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ABSOLUTE_THROTTLE_POS_B</span> 0x47</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:654:70: error: stray '#' in program

<td id="LC59" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ABSOLUTE_THROTTLE_POS_C</span> 0x48</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:658:70: error: stray '#' in program

<td id="LC60" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ACC_PEDAL_POS_D</span> 0x49</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:662:70: error: stray '#' in program

<td id="LC61" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ACC_PEDAL_POS_E</span> 0x4A</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:666:70: error: stray '#' in program

<td id="LC62" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ACC_PEDAL_POS_F</span> 0x4B</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:670:70: error: stray '#' in program

<td id="LC63" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_COMMANDED_THROTTLE_ACTUATOR</span> 0x4C</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:674:70: error: stray '#' in program

<td id="LC64" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_TIME_WITH_MIL</span> 0x4D</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:678:70: error: stray '#' in program

<td id="LC65" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_TIME_SINCE_CODES_CLEARED</span> 0x4E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:682:70: error: stray '#' in program

<td id="LC66" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ETHANOL_FUEL</span> 0x52</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:686:70: error: stray '#' in program

<td id="LC67" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_FUEL_RAIL_PRESSURE</span> 0x59</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:690:70: error: stray '#' in program

<td id="LC68" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_HYBRID_BATTERY_PERCENTAGE</span> 0x5B</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:694:70: error: stray '#' in program

<td id="LC69" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ENGINE_OIL_TEMP</span> 0x5C</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:698:70: error: stray '#' in program

<td id="LC70" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_FUEL_INJECTION_TIMING</span> 0x5D</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:702:70: error: stray '#' in program

<td id="LC71" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ENGINE_FUEL_RATE</span> 0x5E</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:706:70: error: stray '#' in program

<td id="LC72" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ENGINE_TORQUE_DEMANDED</span> 0x61</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:710:70: error: stray '#' in program

<td id="LC73" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ENGINE_TORQUE_PERCENTAGE</span> 0x62</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:714:70: error: stray '#' in program

<td id="LC74" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">PID_ENGINE_REF_TORQUE</span> 0x63</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:1145:8: warning: missing terminating ' character

<!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:1145:3: error: missing terminating ' character

<!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>

^

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:1195:14: warning: missing terminating ' character

You can't perform that action at this time.

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:1195:7: error: missing terminating ' character

You can't perform that action at this time.

^

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:5:1: error: expected unqualified-id before '<' token

<!DOCTYPE html>

^

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:372:3: error: expected unqualified-id before '<' token

</div>

^

In file included from C:\Users\Seb\Documents\Arduino\OBDV1\OBDV1.ino:8:0:

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:447:148: error: expected unqualified-id before '<' token

<td id="LC8" 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\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:447:189: error: expected unqualified-id before '<' token

<td id="LC8" 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\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:759:72: error: 'OBD_PROTOCOLS' does not name a type

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:759:86: error: expected unqualified-id before '<' token

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:792:72: error: 'OBD_STATES' does not name a type

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:792:83: error: expected unqualified-id before '<' token

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

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:801:211: error: expected unqualified-id before '<' token

<td id="LC95" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">uint16_t</span> <span class="pl-en">hex2uint16</span>(<span class="pl-k">const</span> <span class="pl-k">char</span> *p);</td>

^

C:\Users\Seb\Documents\Arduino\libraries\OBD2UART/OBD2UART.h:805:209: error: expected unqualified-id before '<' token

<td id="LC96" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">uint8_t</span> <span class="pl-en">hex2uint8</span>(<span class="pl-k">const</span> <span class="pl-k">char</span> *p);</td>

^

exit status 1
Erreur de compilation pour la carte Arduino/Genuino Uno

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
Post Reply