Error Compiling in example Flash WiShield

Discussion about any of the included sketches (i.e. WebServer), or user-generated applications.

Error Compiling in example Flash WiShield

Postby ontreus » Sun Oct 24, 2010 8:48 pm

Hi I'm having problems compiling the example of Flash WiShield.
Already changed the file apps-conf.h as follows:

# Define APP_WEBSERVER
/ / # Define APP_WEBCLIENT
/ / # Define APP_SOCKAPP
/ / # Define APP_UDPAPP
/ / # Define APP_WISERVER


but the problem continues..
Appears the following errors:

In file included from C:\Arquivos de programas\arduino-0021\libraries\WiShield\/global-conf.h:43,
from C:\Arquivos de programas\arduino-0021\libraries\WiShield\clock-arch.c:35:
C:\Arquivos de programas\arduino-0021\libraries\WiShield\/uip.h:1250: error: expected specifier-qualifier-list before 'uip_udp_appstate_t'

What is the solution to correctly compile the example?

Thanks (ontreus - Brazil)
ontreus
 
Posts: 3
Joined: Sun Oct 24, 2010 8:32 pm

Re: Error Compiling in example Flash WiShield

Postby GregEigsti » Tue Oct 26, 2010 12:48 am

You are going to need to change your occurrences of "# Define" back to "#define" (without the quotes of course). If you have made other changes like this to your sketch, or the WiShield driver code, you will need to undo those as well. The C language/pre-processor has a strict syntax - "# Define" is unknown due to the capital D and the space.

Invalid C syntax
# Define APP_WEBSERVER

Valid C syntax
#define APP_WEBSERVER

Unfortunately you have to follow the rules (called C syntax - or language) ;)
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Error Compiling in example Flash WiShield

Postby ontreus » Tue Oct 26, 2010 8:35 am

:oops:

Thanks
But, still has a bug that makes reference to a file not found:

C:\Arquivos de programas\arduino-0021\hardware\tools\avr\bin\avr-ar: pins_arduino.c.o: No such file or directory

pins_arduino.c

I have to configure some other file?

Thanks
ontreus
 
Posts: 3
Joined: Sun Oct 24, 2010 8:32 pm

Re: Error Compiling in example Flash WiShield

Postby GregEigsti » Tue Oct 26, 2010 10:22 am

I have never heard of that file before - this is not a WiShield file/dependency. It appears that you have grabbed something non-WiShield from somewhere and it is missing a file.
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Error Compiling in example Flash WiShield

Postby ontreus » Tue Oct 26, 2010 1:36 pm

Ok, You are right.
I corrected the syntax errors #Define a #define
But, still gives those errors

In file included from C:\Arquivos de programas\arduino-0021\libraries\WiShield\/global-conf.h:43,
from C:\Arquivos de programas\arduino-0021\libraries\WiShield\clock-arch.c:35:
C:\Arquivos de programas\arduino-0021\libraries\WiShield\/uip.h:1250: error: expected specifier-qualifier-list before 'uip_udp_appstate_t'


Thanks
ontreus
 
Posts: 3
Joined: Sun Oct 24, 2010 8:32 pm

Re: Error Compiling in example Flash WiShield

Postby GregEigsti » Tue Oct 26, 2010 2:56 pm

Typically you see this when you have more than one APP TYPE (e.g. APP_WEBSERVER, APP_WEBCLIENT, etc.) defined in apps-conf.h

If you have modified any of the other WiShield driver files you may want to consider replacing them with the originals.
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website


Return to Sketches and Applications

Who is online

Users browsing this forum: No registered users and 1 guest