Compiler errors ... due to misplaced library files

General support questions and discussions.

Compiler errors ... due to misplaced library files

Postby support » Thu Aug 22, 2013 10:13 pm

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby E5Z » Sun Nov 10, 2013 4:06 pm

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
E5Z
 
Posts: 3
Joined: Mon Oct 07, 2013 10:22 am

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

Postby support » Mon Nov 11, 2013 11:15 am

What operating system are you running on ?
What version of the Arduino IDE are you running ?
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby E5Z » Tue Nov 12, 2013 12:23 pm

I'm running windows 8.1 Arduino IDE 1.05
E5Z
 
Posts: 3
Joined: Mon Oct 07, 2013 10:22 am

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

Postby E5Z » Tue Nov 12, 2013 3:47 pm

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
E5Z
 
Posts: 3
Joined: Mon Oct 07, 2013 10:22 am

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

Postby support » Thu Nov 14, 2013 12:13 am

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm


Return to Support



cron