hi guys i'm new in arduino & i'm posting this to help me with this problem.
Arduino: 1.8.6 Hourly Build 2017/10/20 02:33 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\sbe1\Documents\Arduino\Obstacle_Avoiding_Bot\Obstacle_Avoiding_Bot.ino: In function 'void loop()':
Obstacle_Avoiding_Bot:91: error: compound literal of non-object type 'void'
digitalWrite(RightMotorForward, LOW);
^
Obstacle_Avoiding_Bot:89: error: expected primary-expression before 'void'
void moveStop(){
^
Obstacle_Avoiding_Bot:97: error: compound literal of non-object type 'void'
void moveForward(){
^
Obstacle_Avoiding_Bot:97: error: expected primary-expression before 'void'
void moveForward(){
^
In file included from D:\Downloaded games\Apocalypse\downded programs\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:24:0,
from sketch\Obstacle_Avoiding_Bot.ino.cpp:1:
Obstacle_Avoiding_Bot:113: error: compound literal of non-object type 'void'
goesForward=false;
^
Obstacle_Avoiding_Bot:111: error: expected primary-expression before 'void'
void moveBackward(){
^
Obstacle_Avoiding_Bot:125: error: compound literal of non-object type 'void'
digitalWrite(LeftMotorForward, HIGH);
^
Obstacle_Avoiding_Bot:123: error: expected primary-expression before 'void'
void turnRight(){
^
Obstacle_Avoiding_Bot:142: error: compound literal of non-object type 'void'
digitalWrite(LeftMotorBackward, HIGH);
^
Obstacle_Avoiding_Bot:140: error: expected primary-expression before 'void'
void turnLeft(){
^
Obstacle_Avoiding_Bot:155: error: expected '}' at end of input
}
^
exit status 1
compound literal of non-object type 'void'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
any solve for this? please