Jump to content
Sign in to follow this  
jim

Diamondback

Recommended Posts

Dear Linksprite,

I have a Diamondback Arduino board that I purchased online several months ago. I have finally gotten around to working with it, and I cannot seem to get your webserver file to compile. I have pasted in the errors I am getting below. If you see a simple solution to the issue, please point it out. I followed your video tutorial, and some of the tutorials online. Like I said, the board works, but there is something wrong with this particular code.

Thank You,

David


webserver.c:35:17: error: uip.h: No such file or directory
webserver.c:37:23: error: webserver.h: No such file or directory
webserver.c:38:20: error: config.h: No such file or directory
webserver.c: In function 'webserver_appcall':
webserver.c:48: error: 'uip_conn' undeclared (first use in this function)
webserver.c:48: error: (Each undeclared identifier is reported only once
webserver.c:48: error: for each function it appears in.)
webserver.c:51: error: dereferencing pointer to incomplete type
webserver.c:51: error: dereferencing pointer to incomplete type
webserver.c:51: error: dereferencing pointer to incomplete type
webserver.c: In function 'fill_buf':
webserver.c:67: error: 'webpage' undeclared (first use in this function)
webserver.c:69: error: 'uip_appdata' undeclared (first use in this function)
webserver.c: At top level:
webserver.c:73: error: conflicting types for 'handle_connection'
webserver.c:39: error: previous declaration of 'handle_connection' was here
webserver.c: In function 'handle_connection':
webserver.c:75: error: dereferencing pointer to incomplete type
webserver.c:85: error: dereferencing pointer to incomplete type
webserver.c:88: error: dereferencing pointer to incomplete type
webserver.c:89: error: dereferencing pointer to incomplete type
webserver.c:93: error: dereferencing pointer to incomplete type
webserver.c:98: error: dereferencing pointer to incomplete type
webserver.c:100: error: dereferencing pointer to incomplete type
webserver.c:103: error: dereferencing pointer to incomplete type
webserver.c:106: error: dereferencing pointer to incomplete type
webserver.c:114: error: dereferencing pointer to incomplete type
webserver.c:115: error: dereferencing pointer to incomplete type
webserver.c:116: error: dereferencing pointer to incomplete type

Share this post


Link to post
Share on other sites

We need to uncomment #define APP_WEBSERVER


/******************************************************************************

  Filename:		apps-conf.h
  Description:	Web application configuration file

 ******************************************************************************

  TCP/IP stack and driver for the WiShield 1.0 wireless devices

  Copyright(c) 2009 Async Labs Inc. All rights reserved.

  This program is free software; you can redistribute it and/or modify it
  under the terms of version 2 of the GNU General Public License as
  published by the Free Software Foundation.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  more details.

  You should have received a copy of the GNU General Public License along with
  this program; if not, write to the Free Software Foundation, Inc., 59
  Temple Place - Suite 330, Boston, MA  02111-1307, USA.

  Contact Information:
  <asynclabs@asynclabs.com>

   Author               Date        Comment
  ---------------------------------------------------------------
   AsyncLabs			05/29/2009	Initial port

 *****************************************************************************/

#ifndef __APPS_CONF_H__
#define __APPS_CONF_H__

//Here we include the header file for the application(s) we use in our project.
#define APP_WEBSERVER
//#define APP_WEBCLIENT
//#define APP_SOCKAPP
//#define APP_UDPAPP
//#define APP_WISERVER

#ifdef APP_WEBSERVER
#include "webserver.h"
#endif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×