Trying to compile code for openhardwareexg continuous sampling error on Linux
trying compile code openhardwareexg continuous sampling error on linux ubuntu arduino due.
did not check on windows 10 yet. changed added #include <arduino.h> past first error read useualy issue on linux. error also?
here got code github under arduino.
https://github.com/openelectronicslab/openhardwareexg_shield_arduino_library
shown here
http://forum.arduino.cc/index.php?topic=116803.0
now 1 more error... little more complex wonder if ads1298 file , chip , definition of ads1299?
arduino: 1.8.3 (linux), board: "arduino due (programming port)"
in file included sketch/ads129x.cpp:14:0:
ads129x.h:6: error: redefinition of 'class ads129xchip'
class ads129xchip{
^
in file included sketch/ads129x.cpp:5:0:
ads129x.h:6: error: previous definition of 'class ads129xchip'
class ads129xchip{
^
sketch/ads129x.cpp: in constructor 'ads129xchip::ads129xchip()':
ads129x.cpp:26: error: 'lastsample' not declared in scope
lastsample = null;
^
ads129x.cpp:27: error: 'gain' not declared in scope
gain = null;
^
sketch/ads129x.cpp: in destructor 'ads129xchip::~ads129xchip()':
ads129x.cpp:32: error: 'lastsample' not declared in scope
delete[] lastsample;
^
ads129x.cpp:
googled arduino size_t told me add ccp file
#include <arduino.h> //added size_t error
shown here
http://forum.arduino.cc/index.php?topic=116803.0
did not check on windows 10 yet. changed added #include <arduino.h> past first error read useualy issue on linux. error also?
here got code github under arduino.
https://github.com/openelectronicslab/openhardwareexg_shield_arduino_library
shown here
http://forum.arduino.cc/index.php?topic=116803.0
now 1 more error... little more complex wonder if ads1298 file , chip , definition of ads1299?
arduino: 1.8.3 (linux), board: "arduino due (programming port)"
in file included sketch/ads129x.cpp:14:0:
ads129x.h:6: error: redefinition of 'class ads129xchip'
class ads129xchip{
^
in file included sketch/ads129x.cpp:5:0:
ads129x.h:6: error: previous definition of 'class ads129xchip'
class ads129xchip{
^
sketch/ads129x.cpp: in constructor 'ads129xchip::ads129xchip()':
ads129x.cpp:26: error: 'lastsample' not declared in scope
lastsample = null;
^
ads129x.cpp:27: error: 'gain' not declared in scope
gain = null;
^
sketch/ads129x.cpp: in destructor 'ads129xchip::~ads129xchip()':
ads129x.cpp:32: error: 'lastsample' not declared in scope
delete[] lastsample;
^
ads129x.cpp:
googled arduino size_t told me add ccp file
#include <arduino.h> //added size_t error
shown here
http://forum.arduino.cc/index.php?topic=116803.0
code: [select]
now 1 more error... little more complex wonder if ads1298 file , chip , definition of ads1299?
arduino: 1.8.3 (linux), board: "arduino due (programming port)"
in file included sketch/ads129x.cpp:14:0:
ads129x.h:6: error: redefinition of 'class ads129xchip'
class ads129xchip{
^
in file included sketch/ads129x.cpp:5:0:
ads129x.h:6: error: previous definition of 'class ads129xchip'
class ads129xchip{
^
sketch/ads129x.cpp: in constructor 'ads129xchip::ads129xchip()':
ads129x.cpp:26: error: 'lastsample' not declared in scope
lastsample = null;
^
ads129x.cpp:27: error: 'gain' not declared in scope
gain = null;
^
sketch/ads129x.cpp: in destructor 'ads129xchip::~ads129xchip()':
ads129x.cpp:32: error: 'lastsample' not declared in scope
delete[] lastsample;
^
ads129x.cpp:
please use code tags (</> button on toolbar) when post code or warning/error messages. reason forum software can interpret parts of code markup, leading confusion, wasted time, , reduced chance problem. make easier read code , copy ide or editor. if browser doesn't show posting toolbar can manually add code tags:
[code] // code here [/code]
using code tags , other important information explained in how use forum post. please read it.
what ads129x stuff? library or example code found somewhere? if so, post link found it. please use chain links icon on toolbar make links clickable. code wrote? if so, post code.
[code] // code here [/code]
using code tags , other important information explained in how use forum post. please read it.
what ads129x stuff? library or example code found somewhere? if so, post link found it. please use chain links icon on toolbar make links clickable. code wrote? if so, post code.
Arduino Forum > Using Arduino > Programming Questions > Trying to compile code for openhardwareexg continuous sampling error on Linux
arduino
Comments
Post a Comment