Page 1 of 1

Compiler errors ... due to misplaced library files

PostPosted: Thu Aug 22, 2013 10:13 pm
by support
Hi everyone,

This has to be the most common support question we have received over the years ...

Why am I getting these compiler errors?

MyDoorOpener:59: error: variable or field 'output' declared void
MyDoorOpener:59: error: 'WebServer' was not declared in this scope
MyDoorOpener:59: error: 'server' was not declared in this scope
MyDoorOpener:59: error: expected primary-expression before 'char'
MyDoorOpener:59: error: expected primary-expression before 'bool'
MyDoorOpener:60: error: variable or field 'output' declared void
MyDoorOpener:60: error: 'WebServer' was not declared in this scope
MyDoorOpener:60: error: 'server' was not declared in this scope
MyDoorOpener:60: error: expected primary-expression before 'int'
MyDoorOpener:60: error: expected primary-expression before 'bool'
MyDoorOpener:177: error: 'WebServer' does not name a type
MyDoorOpener:433: error: variable or field 'output' declared void
MyDoorOpener:433: error: 'WebServer' was not declared in this scope
MyDoorOpener:433: error: 'server' was not declared in this scope
MyDoorOpener:433: error: expected primary-expression before 'char'
MyDoorOpener:433: error: expected primary-expression before 'bool'
MyDoorOpener:449: error: variable or field 'output' declared void
MyDoorOpener:449: error: 'WebServer' was not declared in this scope
MyDoorOpener:449: error: 'server' was not declared in this scope
MyDoorOpener:449: error: expected primary-expression before 'int'
MyDoorOpener:449: error: expected primary-expression before 'bool'
MyDoorOpener:458: error: variable or field 'webRequestHandler' declared void
MyDoorOpener:458: error: 'WebServer' was not declared in this scope
MyDoorOpener:458: error: 'server' was not declared in this scope
MyDoorOpener:458: error: 'WebServer' has not been declared
MyDoorOpener:458: error: expected primary-expression before 'char'
MyDoorOpener:458: error: expected primary-expression before 'bool'


The answer is easy ... You don't have the proper file directory layout/structure
the Arduino compiler is expecting. Depending on the operating system you're
using, the files MUST be located in a specific location, particularly the library files.

The following Arduino articles further discuss this topic. We strongly encourage
you to go and read those if you are experiencing any compiler issues following a
straight unzip of our distribution package. Our distribution package should
compile out-of-the-box without any compiler warnings or errors
.

http://arduino.cc/en/Hacking/Libraries
http://arduino.cc/en/Guide/Libraries

Best regards,

Re: Compiler errors ... due to misplaced library files

PostPosted: Sun Nov 10, 2013 4:06 pm
by E5Z
hi
are there step by step instructions for installing the library files, i read the two suggested articles but still get compiler errors 59..... please help

Re: Compiler errors ... due to misplaced library files

PostPosted: Mon Nov 11, 2013 11:15 am
by support
What operating system are you running on ?
What version of the Arduino IDE are you running ?

Re: Compiler errors ... due to misplaced library files

PostPosted: Tue Nov 12, 2013 12:23 pm
by E5Z
I'm running windows 8.1 Arduino IDE 1.05

Re: Compiler errors ... due to misplaced library files

PostPosted: Tue Nov 12, 2013 3:47 pm
by E5Z
after you've asked about the version of os I was using, i went on my old laptop which still runs xp and voila! problem solved compiler errors gone uploaded to my uno in minutes and both of my garage doors are up and running. only thing left is the status sensors. thanks

Re: Compiler errors ... due to misplaced library files

PostPosted: Thu Nov 14, 2013 12:13 am
by support
Glad to see things have worked out for you.

Please remember to post a positive review on the Apple App Store. Thanking you in advance for doing so.

Best regards,