Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile errors #9

Open
grenm opened this issue Aug 29, 2015 · 3 comments
Open

compile errors #9

grenm opened this issue Aug 29, 2015 · 3 comments

Comments

@grenm
Copy link

grenm commented Aug 29, 2015

Hi, new to arduino programming, following the https://vimeo.com/58550465 Egg-3Reprogramming guide closely, the AQEBase will not compile, screen print below

capture

  • I am certainly doing something silly, any tips? Compile error messages below:

Arduino: 1.6.5 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:28: error: 'prog_char' has not been declared
static void browseUrl (prog_char urlbuf, const char *urlbuf_varpart,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:28: error: 'prog_char' has not been declared
prog_char *hoststr, const prog_char *additionalheaderline,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:54: error: 'prog_char' does not name a type
prog_char *hoststr, const prog_char *additionalheaderline,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:65: error: ISO C++ forbids declaration of 'additionalheaderline' with no type [-fpermissive]
prog_char *hoststr, const prog_char *additionalheaderline,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:28: error: 'prog_char' has not been declared
static void browseUrl (prog_char *urlbuf, const char *urlbuf_varpart,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:298:28: error: 'prog_char' has not been declared
prog_char *hoststr,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:27: error: 'prog_char' has not been declared
static void httpPost (prog_char *urlbuf, prog_char *hoststr,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:46: error: 'prog_char' has not been declared
static void httpPost (prog_char *urlbuf, prog_char *hoststr,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:305:27: error: 'prog_char' has not been declared
prog_char *additionalheaderline, const char *postval,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:34: error: 'prog_char' does not name a type
static bool dnsLookup (const prog_char
name, bool fromRam =false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:45: error: ISO C++ forbids declaration of 'name' with no type [-fpermissive]
static bool dnsLookup (const prog_char* name, bool fromRam =false);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Nanode:10: error: variable 'website' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Nanode.ino: In function 'void setupNanode()':
Nanode:50: error: no matching function for call to 'EtherCard::dnsLookup(char [15])'
Nanode.ino:50:31: note: candidate is:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17: note: static bool EtherCard::dnsLookup(const int_, bool)
static bool dnsLookup (const prog_char_ name, bool fromRam =false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17: note: no known conversion for argument 1 from 'char [15]' to 'const int_'
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Provision.ino: At global scope:
Provision:9: error: variable 'website' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Provision.ino: In function 'void doProvisioning()':
Provision:173: error: no matching function for call to 'EtherCard::browseUrl(const char_, char [52], char [15], void (&)(byte, word, word))'
Provision.ino:173:92: note: candidates are:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17: note: static void EtherCard::browseUrl(int_, const char_, int_, const int_, void ()(uint8_t, uint16_t, uint16_t))
static void browseUrl (prog_char *urlbuf, const char *urlbuf_varpart,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17: note: candidate expects 5 arguments, 4 provided
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17: note: static void EtherCard::browseUrl(int
, const char_, int_, void ()(uint8_t, uint16_t, uint16_t))
static void browseUrl (prog_char *urlbuf, const char *urlbuf_varpart,
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17: note: no known conversion for argument 1 from 'const char
' to 'int*'
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Sensors.ino: At global scope:
Sensors:10: error: variable 'website' must be const in order to be put into read-only section by means of 'attribute((progmem))'
variable 'website' must be const in order to be put into read-only section by means of 'attribute((progmem))'

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

@WickedDevice
Copy link

Probably need to be using Arduino 1.0.6.

Regards,
Vic
On Aug 29, 2015 3:33 PM, "grenm" [email protected] wrote:

Hi, new to arduino programming, following the https://vimeo.com/58550465
Egg-3Reprogramming guide closely, the AQEBase will not compile, screen
print below

[image: capture]
https://cloud.githubusercontent.com/assets/3029237/9563945/2458f908-4e8d-11e5-94ef-cd35d98a28c0.PNG

  • I am certainly doing something silly, any tips? Compile error
    messages below:

Arduino: 1.6.5 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:28:
error: 'prog_char' has not been declared
static void browseUrl (prog_char

urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:28:
error: 'prog_char' has not been declared prog_char *hoststr, const
prog_char *additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:54:
error: 'prog_char' does not name a type prog_char *hoststr, const prog_char
*additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:65:
error: ISO C++ forbids declaration of 'additionalheaderline' with no type
[-fpermissive] prog_char *hoststr, const prog_char *additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:28:
error: 'prog_char' has not been declared static void browseUrl (prog_char
*urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:298:28:
error: 'prog_char' has not been declared prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:27:
error: 'prog_char' has not been declared static void httpPost (prog_char
*urlbuf, prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:46:
error: 'prog_char' has not been declared static void httpPost (prog_char
*urlbuf, prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:305:27:
error: 'prog_char' has not been declared prog_char *additionalheaderline,
const char *postval, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:34:
error: 'prog_char' does not name a type static bool dnsLookup (const
prog_char
name, bool fromRam =false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:45:
error: ISO C++ forbids declaration of 'name' with no type [-fpermissive]
static bool dnsLookup (const prog_char* name, bool fromRam =false);
^
In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Nanode:10: error: variable 'website' must be const in order to be put into
read-only section by means of 'attribute((progmem))'
Nanode.ino: In function 'void setupNanode()':
Nanode:50: error: no matching function for call to
'EtherCard::dnsLookup(char [15])'
Nanode.ino:50:31: note: candidate is:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17:
note: static bool EtherCard::dnsLookup(const int
, bool) static bool dnsLookup (const prog_char name, bool fromRam
=false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17:
note: no known conversion for argument 1 from 'char [15]' to 'const int

' In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0, from
C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26, from
AQEBase.ino:1: Provision.ino: At global scope: Provision:9: error: variable
'website' must be const in order to be put into read-only section by means
of 'attribute((progmem))' Provision.ino: In function 'void
doProvisioning()': Provision:173: error: no matching function for call to
'EtherCard::browseUrl(const char
, char [52], char [15], void (&)(byte,
word, word))'
Provision.ino:173:92: note: candidates are:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17:
note: static void EtherCard::browseUrl(int_, const char_, int_, const int_,
void (

)(uint8_t, uint16_t, uint16_t)) static void browseUrl (prog_char *urlbuf,
const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17:
note: candidate expects 5 arguments, 4 provided
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17:
note: static void EtherCard::browseUrl(int
, const char_, int_, void (

)(uint8_t, uint16_t, uint16_t)) static void browseUrl (prog_char *urlbuf,
const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17:
note: no known conversion for argument 1 from 'const char
' to 'int_'
In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Sensors.ino: At global scope:
Sensors:10: error: variable 'website' must be const in order to be put
into read-only section by means of 'attribute((progmem))'
variable 'website' must be const in order to be put into read-only section
by means of '_attribute*((progmem))'

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.


Reply to this email directly or view it on GitHub
#9.

@WickedDevice
Copy link

Also be aware that is the code base for the version 1 air quality egg only.

This article describes how to compile for version 2 eggs.

http://shop.wickeddevice.com/2015/08/26/re-programming-an-air-quality-egg-v2/

Kind Regards,
Vic
On Aug 29, 2015 3:42 PM, "WickedDevice" [email protected] wrote:

Probably need to be using Arduino 1.0.6.

Regards,
Vic
On Aug 29, 2015 3:33 PM, "grenm" [email protected] wrote:

Hi, new to arduino programming, following the https://vimeo.com/58550465
Egg-3Reprogramming guide closely, the AQEBase will not compile, screen
print below

[image: capture]
https://cloud.githubusercontent.com/assets/3029237/9563945/2458f908-4e8d-11e5-94ef-cd35d98a28c0.PNG

  • I am certainly doing something silly, any tips? Compile error
    messages below:

Arduino: 1.6.5 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:28:
error: 'prog_char' has not been declared
static void browseUrl (prog_char

urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:28:
error: 'prog_char' has not been declared prog_char *hoststr, const
prog_char *additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:54:
error: 'prog_char' does not name a type prog_char *hoststr, const prog_char
*additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:291:65:
error: ISO C++ forbids declaration of 'additionalheaderline' with no type
[-fpermissive] prog_char *hoststr, const prog_char *additionalheaderline, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:28:
error: 'prog_char' has not been declared static void browseUrl (prog_char
*urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:298:28:
error: 'prog_char' has not been declared prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:27:
error: 'prog_char' has not been declared static void httpPost (prog_char
*urlbuf, prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:304:46:
error: 'prog_char' has not been declared static void httpPost (prog_char
*urlbuf, prog_char *hoststr, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:305:27:
error: 'prog_char' has not been declared prog_char *additionalheaderline,
const char *postval, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:34:
error: 'prog_char' does not name a type static bool dnsLookup (const
prog_char
name, bool fromRam =false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:45:
error: ISO C++ forbids declaration of 'name' with no type [-fpermissive]
static bool dnsLookup (const prog_char* name, bool fromRam =false);
^
In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from
C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Nanode:10: error: variable 'website' must be const in order to be put
into read-only section by means of 'attribute((progmem))'
Nanode.ino: In function 'void setupNanode()':
Nanode:50: error: no matching function for call to
'EtherCard::dnsLookup(char [15])'
Nanode.ino:50:31: note: candidate is:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17:
note: static bool EtherCard::dnsLookup(const int
, bool) static bool dnsLookup (const prog_char name, bool fromRam
=false);
^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:447:17:
note: no known conversion for argument 1 from 'char [15]' to 'const int

' In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0, from
C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26, from
AQEBase.ino:1: Provision.ino: At global scope: Provision:9: error: variable
'website' must be const in order to be put into read-only section by means
of 'attribute((progmem))' Provision.ino: In function 'void
doProvisioning()': Provision:173: error: no matching function for call to
'EtherCard::browseUrl(const char
, char [52], char [15], void (&)(byte,
word, word))'
Provision.ino:173:92: note: candidates are:
In file included from AQEBase.ino:4:0:
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17:
note: static void EtherCard::browseUrl(int_, const char_, int_, const
int_, void (

)(uint8_t, uint16_t, uint16_t)) static void browseUrl (prog_char
*urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:290:17:
note: candidate expects 5 arguments, 4 provided
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17:
note: static void EtherCard::browseUrl(int
, const char_, int_, void (

)(uint8_t, uint16_t, uint16_t)) static void browseUrl (prog_char
*urlbuf, const char *urlbuf_varpart, ^
C:\Users\ggren\Documents\Arduino\libraries\EtherCard/EtherCard.h:297:17:
note: no known conversion for argument 1 from 'const char
' to 'int_'
In file included from C:\Program Files
(x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from
C:\Users\ggren\Documents\Arduino\libraries\AQERF_Base/AQERF_Base.h:26,
from AQEBase.ino:1:
Sensors.ino: At global scope:
Sensors:10: error: variable 'website' must be const in order to be put
into read-only section by means of 'attribute((progmem))'
variable 'website' must be const in order to be put into read-only
section by means of '_attribute*((progmem))'

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.


Reply to this email directly or view it on GitHub
#9.

@fraguada
Copy link

fraguada commented Jan 1, 2018

Just for completeness, the code in question compiled in Arduino 1.0.5 for macOS found here: https://www.arduino.cc/en/Main/OldSoftwareReleases#1.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants