Go Down

Topic: Problems to compile NewPing code for multi sensors ranging application (Read 1 time) previous topic - next topic

salsiccia

To any expert in C programming;

Has anyone experienced these errors feedback while attempting to compile the code?
If yes, what are the corrections?  The code is a copy from 15 sensors code from Teckel I believe and added my own code for external processes.
See list of errors below.
Newping_Code_for_Multiple_Sensors:16: error: 'NewPing' does not name a type
Newping_Code_for_Multiple_Sensors:17: error: 'NewPing' does not name a type
Newping_Code_for_Multiple_Sensors.ino: In function 'void loop()':
Newping_Code_for_Multiple_Sensors:34: error: 'oneSensorCycle' was not declared in this scope
Newping_Code_for_Multiple_Sensors:35: error: 'sonar' was not declared in this scope
Newping_Code_for_Multiple_Sensors:38: error: 'echoCheck' was not declared in this scope
Newping_Code_for_Multiple_Sensors:42: error: a function-definition is not allowed here before '{' token
Newping_Code_for_Multiple_Sensors:47: error: a function-definition is not allowed here before '{' token
Newping_Code_for_Multiple_Sensors:131: error: expected `}' at end of input

Thank you ,

Pierre Salsiccia, PE ME

johnwasser


Newping_Code_for_Multiple_Sensors:16: error: 'NewPing' does not name a type


The "does not name a type" message almost always means you didn't install the matching library correctly.  Try again.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp
See who has no social life: https://forum.arduino.cc/index.php?action=stats :)

Go Up