Skip to content

Compile Errors with webclient example on Raspberry / Alamode #24

Description

@psegov

Hello I am getting compile errors when try and run the examples on Raspberry PI / Alamode. I have searched around for a solution, but still have not found a fix that works so I thought I would post here to see if others have run into this issue. I am using RN-XU wifly rev. 3 on a seeedstudio bees shield.

http://baldwisdom.com/category/raspberry-pi/alamode/

The sample I am compiling is (no changes):
/home/pi/WiFlyHQ-master/examples/httpclient

Here are the errors:

In file included from httpclient.cpp:12:0:
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:325:27: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:325:38: error: ISO C++ forbids declaration of str with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:326:31: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:326:46: error: ISO C++ forbids declaration of str with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:328:23: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:328:34: error: ISO C++ forbids declaration of str with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:342:26: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:342:37: error: ISO C++ forbids declaration of cmd with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:343:26: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:343:37: error: ISO C++ forbids declaration of opt with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:346:31: error: prog_char does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:346:42: error: ISO C++ forbids declaration of str with no type [-fpermissive]

Here are the errors I am getting when I compile
/home/pi/downloads/WiFlyHQ-master/examples/httpclient_progmem

In file included from httpclient_progmem.cpp:24:0:
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:328:27: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:328:38: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:329:31: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:329:46: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:331:23: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:331:34: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:345:26: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:345:37: error: ISO C++ forbids declaration of ‘cmd’ with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:346:26: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:346:37: error: ISO C++ forbids declaration of ‘opt’ with no type [-fpermissive]
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:349:31: error: ‘prog_char’ does not name a type
/usr/share/arduino/libraries/WiFlyHQ/WiFlyHQ.h:349:42: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp:31:20: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:31:31: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp:32:22: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:32:33: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp:49:20: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:49:31: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp:50:22: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:50:33: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp: In function ‘void setup()’:
httpclient_progmem.cpp:57:15: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:57:15: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:58:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:58:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:63:19: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:63:19: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:70:12: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:70:12: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:76:16: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:76:16: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:78:16: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:78:16: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:82:19: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:82:19: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:87:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:87:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:89:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:89:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:91:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:91:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:93:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:93:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:95:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:95:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:99:13: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:99:13: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:103:19: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:103:19: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:108:17: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:108:17: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp:115:19: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:115:19: error: ‘__c’ was not declared in this scope
httpclient_progmem.cpp: At global scope:
httpclient_progmem.cpp:151:20: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:151:31: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]
httpclient_progmem.cpp:159:22: error: ‘prog_char’ does not name a type
httpclient_progmem.cpp:159:33: error: ISO C++ forbids declaration of ‘str’ with no type [-fpermissive]

Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions